PROFESSIONAL-CLOUD-DEVELOPER · Question #210
You are developing an application that will store and access sensitive unstructured data objects in a Cloud Storage bucket. To comply with regulatory requirements, you need to ensure that all data…
The correct answer is A. Set a retention policy on the bucket with a period of 7 years. D. Create an object lifecycle policy on the bucket that moves objects from Standard Storage to. Two actions are needed: (A) A bucket retention policy set to 7 years enforces a minimum retention period - objects cannot be deleted or overwritten before the policy expires, satisfying the regulatory compliance requirement directly at the storage level. (D) An object lifecycle…
Question
You are developing an application that will store and access sensitive unstructured data objects in a Cloud Storage bucket. To comply with regulatory requirements, you need to ensure that all data objects are available for at least 7 years after their initial creation. Objects created more than 3 years ago are accessed very infrequently (less than once a year). You need to configure object storage while ensuring that storage cost is optimized. What should you do? (Choose two.)
Options
- ASet a retention policy on the bucket with a period of 7 years.
- BUse IAM Conditions to provide access to objects 7 years after the object creation date.
- CEnable Object Versioning to prevent objects from being accidentally deleted for 7 years after
- DCreate an object lifecycle policy on the bucket that moves objects from Standard Storage to
- EImplement a Cloud Function that checks the age of each object in the bucket and moves the
How the community answered
(30 responses)- A70% (21)
- B10% (3)
- C17% (5)
- E3% (1)
Explanation
Two actions are needed: (A) A bucket retention policy set to 7 years enforces a minimum retention period - objects cannot be deleted or overwritten before the policy expires, satisfying the regulatory compliance requirement directly at the storage level. (D) An object lifecycle policy that transitions objects from Standard Storage to a cheaper storage class (such as Coldline or Archive) after 3 years reduces cost for data that is rarely accessed, since those classes have lower per-GB storage prices. Option B (IAM Conditions) controls access but does not enforce retention. Option C (Object Versioning) protects against accidental deletion but does not enforce a retention period. Option E (Cloud Function) is a custom, less reliable, and operationally costly alternative to the native lifecycle policy.
Topics
Community Discussion
No community discussion yet for this question.