An organization requires a security audit service account to review configuration settings for Compute Engine virtual machines and BigQuery datasets across all projects within a folder. The service account must be able to inspect resource metadata and settings, but must NOT be allowed to read table data inside BigQuery or interact with VM guest OS instances. Which TWO predefined IAM roles should be granted to the service account at the folder level to satisfy the principle of least privilege? (Select TWO answers.)
- Compute Viewer (roles/compute.viewer)Cevap
- BigQuery Metadata Viewer (roles/bigquery.metadataViewer)Cevap
- CEditor (roles/editor)
- DViewer (roles/viewer)
Cevap
The correct roles to grant are Compute Viewer (roles/compute.viewer) and BigQuery Metadata Viewer (roles/bigquery.metadataViewer).
Granting Compute Viewer (roles/compute.viewer) and BigQuery Metadata Viewer (roles/bigquery.metadataViewer) perfectly fulfills the security requirements. Compute Viewer allows inspecting VM configurations without granting interactive access or write permissions. BigQuery Metadata Viewer allows listing and viewing dataset schemas and table metadata while explicitly withholding access to actual table contents.
Adım Adım Çözüm
Anahtar Kavram
Selecting predefined IAM roles to enforce least privilege access controls