An enterprise security team needs to grant an external compliance auditor permission to view BigQuery dataset metadata for all Google Cloud projects contained within a specific department folder. The solution must adhere to the principle of least privilege and minimize administrative overhead. Which action should the Cloud Architect take?
- Grant the predefined BigQuery Metadata Viewer role (roles/bigquery.metadataViewer) on the department folder node.Answer
- BGrant the primitive Viewer role (roles/viewer) at the Organization resource node.
- CGrant the Service Account User role (roles/iam.serviceAccountUser) on each project within the folder.
- DConfigure a VPC Service Controls security perimeter around the department folder to allow metadata access.
Answer
Grant the predefined BigQuery Metadata Viewer role (roles/bigquery.metadataViewer) on the department folder node.
Granting the predefined BigQuery Metadata Viewer role at the folder level leverages resource hierarchy inheritance so that all current and future projects within the folder inherit metadata viewing rights without granting access to table data or other GCP services.
Step-by-Step Solution
Key Concept
Resource Hierarchy Permission Inheritance and Predefined IAM Roles