A Cloud Engineer must configure a Google Cloud Storage bucket storing audit logs to adhere to regulatory compliance standards. The policy mandates that objects must be protected against deletion or modification for three years, and storage costs for logs older than 90 days must be optimized automatically while retaining accessibility. Which TWO actions should the engineer execute to achieve these operational requirements?
- Configure a Retention Policy with a locked duration of three years on the Cloud Storage bucket.Answer
- Create an Object Lifecycle Management rule with an action to transition objects to Coldline or Archive storage after 90 days from creation.Answer
- CApply custom per-object Access Control Lists (ACLs) to revoke delete permissions for all users while Uniform Bucket-Level Access is enforced.
- DSet the default storage class of the bucket directly to Archive Storage immediately upon bucket deployment while active logs are queried daily.
Answer
The correct actions are to set a locked Bucket Retention Policy for three years and to create an Object Lifecycle Management rule transitioning objects to Coldline or Archive storage after 90 days.
Locking a Bucket Retention Policy enforces immutability and prevents data deletion for the mandated three-year period. Additionally, using Object Lifecycle Management rules automatically shifts objects older than 90 days to colder storage classes (such as Coldline or Archive), meeting cost optimization goals without manual intervention.
Step-by-Step Solution
Key Concept
Cloud Storage Bucket Lock and Object Lifecycle Management