Your team stores application log files in a Google Cloud Storage bucket. These logs are accessed frequently during the first 30 days after creation. After 30 days, the logs are rarely accessed, but they must be retained for one year for compliance auditing. You want to automate moving these objects to a lower-cost storage class after 30 days to minimize storage expenses. What should you do?
- Configure an Object Lifecycle Management rule on the bucket to change the storage class of objects to Coldline when their age reaches 30 days.Answer
- BConfigure an Object Lifecycle Management rule on the bucket to change the storage class of objects to Standard when their age reaches 30 days.
- CWrite a scheduled script to migrate the log files into a Cloud Bigtable table after 30 days.
- DConfigure an Object Lifecycle Management rule on the bucket to delete objects when their age reaches 30 days.
Answer
Configure an Object Lifecycle Management rule on the bucket to change the storage class of objects to Coldline when their age reaches 30 days.
Configuring an Object Lifecycle Management rule to transition objects to Coldline Storage after 30 days automatically shifts rarely accessed logs into a cheaper storage class while satisfying the one-year retention requirement.
Step-by-Step Solution
Key Concept
Cloud Storage Object Lifecycle Management for cost optimization
Estimated Time:45s