An organization needs to grant a newly onboarded team of data analysts access to process datasets within a Google Cloud project named `analytics-prod`. The analysts must be able to read files stored inside Cloud Storage buckets in this project and run BigQuery SQL queries to analyze data. They must not be permitted to create or delete Cloud Storage buckets, modify object contents, or manage BigQuery dataset permissions. Which TWO predefined IAM roles should be assigned to the analysts' Google Group at the project level to meet these requirements while following the principle of least privilege?
- Storage Object Viewer (roles/storage.objectViewer)Answer
- BigQuery Job User (roles/bigquery.jobUser)Answer
- CEditor (roles/editor)
- DStorage Admin (roles/storage.admin)
Answer
The data analysts should be granted the Storage Object Viewer role (roles/storage.objectViewer) and the BigQuery Job User role (roles/bigquery.jobUser) at the project level.
The combination of Storage Object Viewer and BigQuery Job User fulfills the exact operational needs of reading bucket objects and running BigQuery SQL queries without granting unnecessary permissions to edit resources or manage administrative settings.
Step-by-Step Solution
Key Concept
Applying Least-Privilege Predefined IAM Roles for Multi-Resource Access