Soru

Zorluk: ZorManaging Cloud Projects and Resource Hierarchy

An enterprise organization manages its workloads in Google Cloud using a resource hierarchy consisting of an Organization node, a top-level Folder named 'Production-Apps', and a nested sub-folder named 'PCI-Compliant-Workloads'. An administrator previously granted an auditing group the 'Compute Viewer' (roles/compute.viewer) role at the 'Production-Apps' folder level. The security team now requires that this auditing group be prevented from viewing Compute Engine instances inside the 'PCI-Compliant-Workloads' folder, while maintaining their viewer access across all other projects in 'Production-Apps'. A cloud engineer attempts to remove the group's 'Compute Viewer' role binding directly on the 'PCI-Compliant-Workloads' folder, but group members are still able to list and view all Compute Engine resources within that sub-folder. Which statement accurately explains why this access persists and describes the correct administrative remedy?

  1. IAM permissions in Google Cloud are strictly additive and inherited down the resource hierarchy; inherited permissions cannot be revoked or denied at a lower hierarchy node. To restrict access, remove the folder-level role binding from 'Production-Apps' and grant 'Compute Viewer' only on the specific child projects or sub-folders where access is permitted.Cevap
  2. B
    IAM policy inheritance is subtractive by default; removing a role at a child folder level only takes effect if an Organization Policy constraint explicitly enables IAM Policy Inheritance Overrides at the sub-folder level.
  3. C
    The group retains access because revoking an inherited role at a child node requires defining an explicit Deny policy at the project level, as child folder removals do not override parent folder permissions.
  4. D
    The inherited role cannot be modified at the sub-folder level because the group was assigned a predefined role instead of a primitive role; predefined roles lock inherited permissions across all child folders.

Cevap

IAM permissions in Google Cloud are strictly additive and inherited down the resource hierarchy; inherited permissions cannot be revoked or denied at a lower hierarchy node. To restrict access, remove the folder-level role binding from 'Production-Apps' and grant 'Compute Viewer' only on the specific child projects or sub-folders where access is permitted.
In Google Cloud, IAM policy inheritance is strictly additive. Effective permissions for a resource are the union of the permissions granted at that resource level and all of its parent nodes in the resource hierarchy (Project, Folders, and Organization). Because the auditing group holds the Compute Viewer role on the parent folder, members inherit those permissions across all child folders and projects regardless of child policy edits. The correct solution is to unbind the role from the parent folder and assign it only to the specific child containers where access is intended.

Adım Adım Çözüm

1
Analyze how IAM permissions flow through the Google Cloud resource hierarchy.
Permissions granted at higher levels (Organization > Folder > Project > Resource) are automatically inherited by all child nodes beneath them.
Google Cloud IAM follows a deterministic additive inheritance model.
2
Evaluate why removing the role binding at the nested folder level failed to revoke access.
The policy on the child folder does not contain the role binding, but the evaluation engine checks all ancestor nodes up to the Organization level. Because the binding exists on the parent folder 'Production-Apps', access is granted.
Child resource IAM policies can add permissions to inherited ones, but cannot remove permissions inherited from parent nodes.
3
Determine the proper architecture to enforce the principle of least privilege.
Remove the 'Compute Viewer' role from the parent folder 'Production-Apps', and grant it explicitly on the individual projects or child folders where the auditing group is authorized.
Restricting access to a specific sub-tree requires scoping parent permissions down or reorganizing the folder structure.

Anahtar Kavram

Resource Hierarchy IAM Policy Inheritance and Additive Model
Tahmini Süre:2m 0s
Bu soruyu puanla