A cloud operations team manages a Google Cloud Storage bucket containing regulatory financial records. To satisfy strict compliance requirements, all uploaded records must remain unmodified and undeletable for a mandatory retention duration of five years. The team has already set a retention period of 1,825 days on the bucket. Now, they must ensure that no user—including administrators and project owners—can reduce the retention period or remove the policy. Which operational action must the engineer perform to fulfill this requirement?
- Execute `gcloud storage buckets update gs://[BUCKET_NAME] --lock-retention-policy` and confirm the action.Answer
- BDeploy a Cloud Storage Lifecycle Management rule with an action of `Delete` and an `age` condition of 1,825 days.
- CExecute `gcloud storage objects update gs://[BUCKET_NAME]/** --event-hold` to lock every individual object.
- DEnable Uniform Bucket-Level Access on the bucket and grant the Storage Object Viewer role to all project users.
Answer
Execute the command `gcloud storage buckets update gs://[BUCKET_NAME] --lock-retention-policy` and confirm the prompt.
Locking a bucket retention policy irreversibly enforces Write Once Read Many (WORM) storage compliance. Once locked, the retention policy cannot be removed, and the retention duration cannot be reduced by any user or service account, guaranteeing compliance against accidental or malicious deletion.
Step-by-Step Solution
Key Concept
Cloud Storage Bucket Retention Policy Locking
Estimated Time:2m 0s