An enterprise security compliance policy requires an external auditing team to be granted read-only access to log files in a specific Cloud Storage bucket and query access to a specific BigQuery dataset in a production project. To strictly adhere to the Principle of Least Privilege, which of the following IAM role configurations should you apply? (Select TWO answers.)
- Grant the Cloud Storage Object Viewer (roles/storage.objectViewer) role to the auditors on the specific Cloud Storage bucket.Cevap
- Grant the BigQuery Data Viewer (roles/bigquery.dataViewer) role to the auditors on the specific BigQuery dataset.Cevap
- CGrant the Viewer (roles/viewer) primitive role to the auditors at the Google Cloud project level.
- DGrant the Cloud Storage Object Viewer (roles/storage.objectViewer) role to the auditors at the parent Folder level.
Cevap
Assigning predefined roles (roles/storage.objectViewer and roles/bigquery.dataViewer) directly at the specific resource levels (bucket and dataset) satisfies the access requirements while maintaining the Principle of Least Privilege.
Granting predefined roles directly on the individual target resources (Cloud Storage Object Viewer on the bucket and BigQuery Data Viewer on the dataset) enforces the Principle of Least Privilege by restricting access strictly to the requested data assets.
Adım Adım Çözüm
Anahtar Kavram
Applying least-privilege access control by granting predefined IAM roles at specific resource levels rather than using primitive roles or binding roles higher in the resource hierarchy.