An enterprise organization uses a Google Cloud resource hierarchy consisting of an Organization node, department Folders, and environment Projects. A compliance auditor needs read-only access to all current and future Google Cloud resources grouped under the 'Finance-Dept' folder. You need to configure access control following Google Cloud best practices and the principle of least privilege. Which action should you take?
- Grant the predefined Viewer role (roles/viewer) to the auditor at the 'Finance-Dept' folder level.Answer
- BGrant the predefined Viewer role (roles/viewer) to the auditor individually on each project currently residing inside the 'Finance-Dept' folder.
- CGrant the primitive Owner role (roles/owner) to the auditor at the 'Finance-Dept' folder level.
- DGrant the Billing Account Administrator role (roles/billing.admin) to the auditor on the Billing Account linked to the 'Finance-Dept' projects.
Answer
Grant the predefined Viewer role (roles/viewer) to the auditor at the 'Finance-Dept' folder level.
In Google Cloud's resource hierarchy, IAM policy bindings flow downward from Organization to Folders to Projects to Resources. Assigning the predefined Viewer role at the 'Finance-Dept' folder level grants read-only access to all present and future child resources while maintaining administrative efficiency and the principle of least privilege.
Step-by-Step Solution
Key Concept
Resource Hierarchy IAM Policy Inheritance