1Z0-060 · Question #207
Your multitenant container database (CDB) contains several pluggable databases (PDBs). Users and have only connect privileges. C##A_ADMIN B_ADMIN You create a common role with common privileges…
The correct answer is C. C##_A_ADMIN can create and select any table, and grant the C##_ROLE1 role to users in the E. B_ADMIN can create and select any table in HR_PDB. Granting a common role with CONTAINER=ALL applies it commonly across the root and all PDBs, while a local grant using CONTAINER=CURRENT restricts role privileges to only the PDB where it was granted.
Question
Options
- AC##_A_ADMIN can create and select any table in the root container as well as in all current PDBs.
- BC##_A_ADMIN can create and select any table in the root container as well as in all current and
- CC##_A_ADMIN can create and select any table, and grant the C##_ROLE1 role to users in the
- DB_ADMIN can create and select any table, and grant the C##_ROLE1 role to users in HR_PDB.
- EB_ADMIN can create and select any table in HR_PDB
How the community answered
(21 responses)- A14% (3)
- B10% (2)
- C43% (9)
- D33% (7)
Why each option
Granting a common role with CONTAINER=ALL applies it commonly across the root and all PDBs, while a local grant using CONTAINER=CURRENT restricts role privileges to only the PDB where it was granted.
This choice incorrectly limits the scope of CONTAINER=ALL to only current PDBs; CONTAINER=ALL applies the role to the root and all PDBs including those plugged in after the grant.
This choice appears to omit the root container from the grant scope or contains a factual inaccuracy about how CONTAINER=ALL propagates, making it less precise than choice C.
C##_A_ADMIN was granted C##_ROLE1 with CONTAINER=ALL, which applies the role commonly across the root container and every PDB, enabling the CREATE TABLE and SELECT ANY TABLE privileges in all containers, and if the grant included WITH ADMIN OPTION, re-granting is also allowed.
B_ADMIN was granted C##_ROLE1 locally without WITH ADMIN OPTION, so B_ADMIN cannot re-grant the role to other users even within HR_PDB.
B_ADMIN received C##_ROLE1 as a local grant in HR_PDB using CONTAINER=CURRENT, so the role's CREATE TABLE and SELECT ANY TABLE privileges are available to B_ADMIN exclusively within HR_PDB.
Concept tested: Common role grants CONTAINER=ALL vs CONTAINER=CURRENT scope
Source: https://docs.oracle.com/en/database/oracle/oracle-database/12.2/dbseg/configuring-privilege-and-role-authorization.html
Topics
Community Discussion
No community discussion yet for this question.