A financial data processing pipeline uploads automated daily extract files into a Cloud Storage bucket named `fin-monthly-extracts`. A legacy batch script executed by a dedicated service account currently sets fine-grained object Access Control Lists (ACLs) using `gsutil acl` after each upload. Security policy now mandates enforcing Uniform Bucket-Level Access across all storage buckets in the project. Which action should you take to enforce compliance while ensuring the batch script can successfully read and write objects?
- Grant the service account the predefined Storage Object Admin role at the bucket level, remove the object ACL commands from the script, and enable Uniform Bucket-Level Access on the bucket.Cevap
- BEnable Uniform Bucket-Level Access on the bucket, and update the batch script to execute `gsutil acl ch` to grant object-level read permissions after each file upload.
- CGrant the service account the primitive Editor role at the project level, and keep Uniform Bucket-Level Access disabled to preserve legacy object ACL management.
- DRevoke project-level IAM permissions from the service account and configure ACLs on the destination folder, expecting folder-level ACLs to override IAM policies once Uniform Bucket-Level Access is active.
Cevap
Grant the service account the predefined Storage Object Admin role at the bucket level, remove the object ACL commands from the script, and enable Uniform Bucket-Level Access on the bucket.
Enabling Uniform Bucket-Level Access (UBLA) standardizes Cloud Storage security by delegating all access decisions strictly to Cloud IAM and disabling individual object Access Control Lists (ACLs). Granting the predefined Storage Object Admin role at the bucket level allows the service account to perform necessary file management operations without exceeding least privilege requirements.
Adım Adım Çözüm
Anahtar Kavram
Uniform Bucket-Level Access (UBLA) unifies permissions exclusively through Cloud IAM roles and explicitly disables legacy Object ACL operations.
Tahmini Süre:2m 0s