nerdexam
Oracle

1Z0-060 · Question #189

Your multitenant container database (CDB) contains some pluggable databases (PDBs), you execute the following commands to create a common user and grant connect privileges: Which statement is true…

The correct answer is C. The user can connect to the root and all PDBs. Common users created in a CDB root with CONTAINER=ALL on the CONNECT privilege can authenticate to the root and every PDB in the multitenant environment.

New Features for Security

Question

Your multitenant container database (CDB) contains some pluggable databases (PDBs), you execute the following commands to create a common user and grant connect privileges:

Which statement is true about the common user created by the command?

Exhibit

1Z0-060 question #189 exhibit

Options

  • AThe user cannot connect any database because the CONTAINER clause is missing.
  • BThe user can connect only to the root database.
  • CThe user can connect to the root and all PDBs.
  • DThe user cannot connect to any database because the CREATE ANY SESSION privilege must

How the community answered

(45 responses)
  • A
    11% (5)
  • B
    2% (1)
  • C
    82% (37)
  • D
    4% (2)

Why each option

Common users created in a CDB root with CONTAINER=ALL on the CONNECT privilege can authenticate to the root and every PDB in the multitenant environment.

AThe user cannot connect any database because the CONTAINER clause is missing.

The CONTAINER clause is optional; its absence does not automatically invalidate the grant or block all connectivity - the actual scope depends on the specific grant syntax used.

BThe user can connect only to the root database.

Connecting only to root would result from a CONTAINER=CURRENT grant; a CONTAINER=ALL grant extends access to all PDBs as well.

CThe user can connect to the root and all PDBs.Correct

When a common user is created in CDB$ROOT and CREATE SESSION (via the CONNECT role) is granted with CONTAINER=ALL, the privilege propagates to every container - both the root and all existing and future PDBs. This is the core behavior of common privileges in Oracle Multitenant architecture.

DThe user cannot connect to any database because the CREATE ANY SESSION privilege must

The CONNECT role includes CREATE SESSION, which is sufficient for logon; CREATE ANY SESSION is a separate and more powerful system privilege that is not required for basic connectivity.

Concept tested: Oracle CDB common user privileges and CONTAINER clause scope

Source: https://docs.oracle.com/en/database/oracle/oracle-database/19/dbseg/managing-security-for-oracle-database-users.html

Topics

#common user#CDB#CONTAINER clause#user privileges

Community Discussion

No community discussion yet for this question.

Full 1Z0-060 Practice