A data analyst needs read-only access to view tables and execute queries within existing BigQuery datasets in a Google Cloud project, without the ability to modify table data or create new datasets. Following Google Cloud security best practices for least privilege, which IAM role should you grant to the analyst?
- BigQuery Data Viewer (roles/bigquery.dataViewer)Answer
- BBigQuery Data Editor (roles/bigquery.dataEditor)
- CEditor (roles/editor)
- DOwner (roles/owner)
Answer
BigQuery Data Viewer (roles/bigquery.dataViewer)
The BigQuery Data Viewer role (roles/bigquery.dataViewer) grants permissions to view dataset contents, tables, and run queries without permitting users to alter data, create datasets, or manage permissions, strictly satisfying the principle of least privilege.
Step-by-Step Solution
Key Concept
Principle of Least Privilege using Predefined IAM Roles