A data analyst needs to execute query jobs in a Google Cloud project and read table data within a specific BigQuery dataset. Following the principle of least privilege, which TWO IAM roles should be granted to the analyst?
- Grant the BigQuery Job User role (roles/bigquery.jobUser) at the project level.Cevap
- Grant the BigQuery Data Viewer role (roles/bigquery.dataViewer) at the dataset level.Cevap
- CGrant the primitive Editor role (roles/editor) at the project level.
- DGrant the BigQuery Admin role (roles/bigquery.admin) at the organization level.
Cevap
Grant the BigQuery Job User role (roles/bigquery.jobUser) at the project level and grant the BigQuery Data Viewer role (roles/bigquery.dataViewer) at the dataset level.
Executing BigQuery queries requires project-level permissions to create and manage job resources via the BigQuery Job User role, whereas reading dataset contents requires data access permissions granted via the BigQuery Data Viewer role on the specific dataset.
Adım Adım Çözüm
Anahtar Kavram
Applying Least-Privilege Predefined IAM Roles and Scoping Resource Hierarchy