A security analyst is hardening a Cloud Storage bucket named `compliance-audit-logs` that currently permits fine-grained Access Control Lists (ACLs). The analyst needs to restrict access control exclusively to IAM policies across all current and future objects, while granting an internal compliance team view access to the stored logs. Which TWO actions should the security analyst perform to achieve this requirement? (Select TWO.)
- Enable Uniform Bucket-Level Access on the `compliance-audit-logs` bucket.Answer
- BApply a per-object ACL with READER permissions for the compliance team on each object inside the bucket.
- Grant the `roles/storage.objectViewer` IAM role to the compliance team identity on the `compliance-audit-logs` bucket.Answer
- DGrant the primitive `roles/Viewer` role to the compliance team at the Google Cloud Project level.
Answer
The security analyst should enable Uniform Bucket-Level Access on the bucket and grant the predefined `roles/storage.objectViewer` IAM role to the compliance team at the bucket level.
To ensure access control is managed exclusively through IAM, Uniform Bucket-Level Access must be enabled on the target Cloud Storage bucket. To grant the required read access to log objects adhering to the principle of least privilege, the predefined role `roles/storage.objectViewer` should be assigned to the compliance team at the bucket level.
Step-by-Step Solution
Key Concept
Uniform Bucket-Level Access and Predefined Storage IAM Roles