A central data operations team is configuring access permissions for a contract analyst. The analyst requires permissions to run SQL query jobs and view dataset contents within a single Google Cloud project named `analytics-prod-883`, without permissions to edit data, delete tables, or manage infrastructure. In accordance with the principle of least privilege, which TWO predefined IAM roles should be granted to the analyst on the `analytics-prod-883` project?
- BigQuery Job User (roles/bigquery.jobUser)Cevap
- BigQuery Data Viewer (roles/bigquery.dataViewer)Cevap
- CEditor (roles/editor)
- DBigQuery Admin (roles/bigquery.admin) granted at the parent Folder resource level
Cevap
The contract analyst should be assigned the predefined roles BigQuery Job User (roles/bigquery.jobUser) and BigQuery Data Viewer (roles/bigquery.dataViewer) scoped directly to the target project.
Running queries and viewing dataset contents in BigQuery requires two distinct permissions in GCP IAM: permission to execute jobs within the project and permission to read dataset contents. Assigning BigQuery Job User (roles/bigquery.jobUser) provides job execution access, and BigQuery Data Viewer (roles/bigquery.dataViewer) grants read-only dataset access at the project scope.
Adım Adım Çözüm
Anahtar Kavram
Applying least privilege for BigQuery operations using project-scoped predefined roles
Tahmini Süre:2m 0s