Your organization has a Google Cloud folder named 'Analytics' containing multiple projects with Cloud Storage buckets storing raw telemetry data. A new data analyst needs to read all objects within these Cloud Storage buckets across all projects under the 'Analytics' folder. Additionally, the analyst must be able to execute BigQuery queries using a specific project named 'query-runner' located within the same folder, without having permissions to modify data, alter bucket configurations, or view IAM policy bindings. Which combination of IAM roles assigned to the data analyst follows Google-recommended best practices of least privilege?
- Grant Storage Object Viewer (roles/storage.objectViewer) on the 'Analytics' folder, and grant BigQuery Job User (roles/bigquery.jobUser) on the 'query-runner' project.Cevap
- BGrant Viewer (roles/viewer) on the 'Analytics' folder.
- CGrant Storage Admin (roles/storage.admin) on the 'Analytics' folder, and grant BigQuery Admin (roles/bigquery.admin) on the 'query-runner' project.
- DGrant Storage Object Viewer (roles/storage.objectViewer) on the 'query-runner' project, expecting permissions to inherit upward to the 'Analytics' folder and all sibling projects.
Cevap
Grant Storage Object Viewer (roles/storage.objectViewer) on the 'Analytics' folder, and grant BigQuery Job User (roles/bigquery.jobUser) on the 'query-runner' project.
Granting Storage Object Viewer on the parent folder allows read access to all storage objects across child projects via resource hierarchy inheritance, while avoiding administrative access. Granting BigQuery Job User specifically on the query-running project enables running queries without granting dataset modification rights. This combination strictly enforces the principle of least privilege using predefined roles.
Adım Adım Çözüm
Anahtar Kavram
Resource hierarchy inheritance and predefined roles for least privilege
Tahmini Süre:2m 0s