A cloud administrator is configuring access for a Google Cloud Storage bucket named `corp-financial-records`. The security policy requires enforcing central governance by activating Uniform Bucket-Level Access (UBLA). A data analyst requires read-only access to the data in this bucket. How should the administrator grant the analyst the required access while adhering to Google Cloud security best practices?
- Grant the predefined `roles/storage.objectViewer` IAM role to the analyst at the bucket level.Answer
- BApply a fine-grained Access Control List (ACL) directly to individual objects to give the analyst reader access.
- CAssign the primitive `roles/viewer` role to the analyst across the entire parent Google Cloud project.
- DDisable IAM policy inheritance on the bucket so that object-level permissions can take precedence over inherited project roles.
Answer
Grant the predefined `roles/storage.objectViewer` IAM role to the analyst at the bucket level.
When Uniform Bucket-Level Access is enabled on a Cloud Storage bucket, Access Control Lists (ACLs) are disabled, and access management relies entirely on Cloud IAM. Granting the predefined `roles/storage.objectViewer` role to the analyst at the bucket level follows Google Cloud security best practices and the principle of least privilege.
Step-by-Step Solution
Key Concept
Uniform Bucket-Level Access (UBLA) disables Cloud Storage ACLs and mandates access control management via Cloud IAM roles.