A financial technology company structures its Google Cloud resources using separate environment folders (`Production` and `Staging`) under an Organization node. A third-party security auditing team requires read-only permissions to inspect security configurations, IAM policies, and asset inventories for all current and future resources inside the `Production` folder. The auditors must not be allowed to modify resource configurations, access application data payloads, or manage service account keys. Which IAM role binding strategy adheres to Google-recommended best practices for least privilege and resource hierarchy management?
- AAssign the Viewer primitive role (`roles/viewer`) at the `Production` folder level.
- BAssign the Service Account Admin role (`roles/iam.serviceAccountAdmin`) at the `Production` folder level.
- Assign the predefined Security Reviewer role (`roles/iam.securityReviewer`) at the `Production` folder level.Answer
- DAssign the Security Reviewer role (`roles/iam.securityReviewer`) at the `Production` folder level while relying solely on this IAM role assignment to prevent authorized users from copying data to external storage buckets.
Answer
Assign the predefined Security Reviewer role (`roles/iam.securityReviewer`) at the `Production` folder level.
Assigning the predefined Security Reviewer role (`roles/iam.securityReviewer`) at the folder level grants read-only access to security policies and resource configurations for all current and future projects in that folder through inheritance. This enforces least privilege without operational overhead or granting access to underlying application data.
Step-by-Step Solution
Key Concept
Resource Hierarchy IAM Role Inheritance and Least Privilege