Question 1
A policy statement is written as: `allow group NetworkAdmins to manage virtual-network-family in compartment Shared:Networking`. The compartment `Shared:Networking` contains two child compartments, `Prod-VCN` and `Dev-VCN`. What access does this single statement grant?
A. Full management of virtual network resources in Shared:Networking only; the child compartments are excluded unless separate statements are written for each.
Denies compartment inheritance. Access granted at a compartment automatically flows down to compartments nested inside it, so no per-child statement is required.
B. Full management of virtual network resources in Shared:Networking and in its nested compartments Prod-VCN and Dev-VCN.Correct answer
Correct. A policy granting access to a compartment applies to that compartment and, by inheritance, to all compartments nested beneath it, so the group manages virtual-network-family in the named compartment and both children.
C. Full management of virtual network resources in Shared:Networking, its children, and the parent compartment Shared, because access propagates up the hierarchy to the enclosing compartment.
Reverses the direction of inheritance. Compartment access flows downward to nested compartments, never upward to a parent or to sibling compartments.
D. Read-only visibility of virtual network resources across the whole tenancy, because 'manage' only confers listing rights until an administrator approves the group.
Misreads the verb and scope. 'manage' is the broadest verb, conferring full permissions including create and delete, and the scope clause limits it to the named compartment subtree, not the tenancy.
Explanation
An IAM policy attached to a compartment grants the stated access in that compartment and in every compartment nested inside it, because access is inherited downward through the compartment hierarchy. Inheritance never runs upward, so the parent compartment is not included, and writing a statement per child is unnecessary. The verb 'manage' is the broadest of the four verbs and confers full permissions on the resource family within the stated scope rather than mere visibility.