GCP Associate Cloud Engineer Practice Question 63: Bucket Lock Retention Policy

Google Cloud Associate Cloud Engineer · Test 7 · question 3 of 10

Cloud Storagehard

A financial services company must store compliance records in a Cloud Storage bucket for seven years. Regulations require that during that period no one, including project owners and organization administrators, be able to delete or overwrite the objects, and the company must be able to prove to auditors that this restriction cannot be reversed. Which approach meets this requirement?

Select one answer
Show answer and explanation

Answer:

  • A. Set a seven year retention policy on the bucket and lock the retention policy with Bucket Lock.

A retention policy on a bucket prevents objects from being deleted or overwritten until they reach the specified age. On its own, that policy can still be shortened or removed by anyone with sufficient permission. Bucket Lock permanently locks the policy so it can never be reduced or removed, and the bucket itself cannot be deleted until every object in it has met its retention period, not even by a project owner or org admin. That combination gives the company an audit proof, irreversible guarantee, which is exactly what the scenario requires.

B is wrong because Object Versioning combined with a lifecycle rule only manages how many noncurrent versions are kept; it does not stop someone with delete permission from removing the current version or the bucket, and a lifecycle rule can itself be edited or deleted at any time. C is wrong because revoking IAM bindings is an administrative control that any administrator with the right permissions (such as storage.admin or Owner) can undo, so it provides no protection against a privileged user and nothing to show an auditor as proof of immutability. D is wrong because an unlocked retention policy can be shortened or removed by an administrator at any time, which fails the requirement that the restriction be irreversible.

Reference: Retention policies and Bucket Lock

Practice Test 7 ›

Study guides for Google Cloud Associate Cloud Engineer