A compliance auditor requires read-only access to query and analyze BigQuery dataset contents across all Google Cloud projects contained within a specific organizational folder. The auditor should not have access to manage project configurations or read data from other GCP services. To adhere to the principle of least privilege while minimizing management overhead, which IAM role configuration should you implement?
- Grant the BigQuery Data Viewer role (`roles/bigquery.dataViewer`) to the auditor at the Folder resource level.Answer
- BGrant the primitive Viewer role (`roles/viewer`) to the auditor at the Folder resource level.
- CGrant the BigQuery Data Viewer role (`roles/bigquery.dataViewer`) at the Organization level and apply a Deny policy on other folders.
- DGrant the Billing Account Viewer role (`roles/billing.viewer`) to the auditor at the Folder resource level.
Answer
Grant the BigQuery Data Viewer role (`roles/bigquery.dataViewer`) to the auditor at the Folder resource level.
Granting the predefined BigQuery Data Viewer role (`roles/bigquery.dataViewer`) at the Folder level leverages IAM policy inheritance down the resource hierarchy. All current and future projects under that folder will inherit this role, granting the auditor read-only access to BigQuery dataset contents while enforcing the principle of least privilege.
Step-by-Step Solution
Key Concept
Resource hierarchy inheritance and predefined role selection for IAM access control
Estimated Time:1m 30s