
Answer-first summary for fast verification
Answer: Create an object lifecycle on the storage bucket to change the storage class to Archive Storage for objects with an age over 30 days.
The correct answer is A: Create an object lifecycle on the storage bucket to change the storage class to Archive Storage for objects with an age over 30 days. This approach automatically transitions less frequently accessed files to a cheaper storage class, helping to reduce costs while retaining the files for any potential future use. This method aligns with the requirement to save costs on files that are no longer accessed, without the need to delete them outright.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your application currently stores files on Google Cloud Storage using the Standard Storage class. These files are primarily required for access within the first 30 days of their creation. To optimize costs, you need a solution that automatically reduces expenses for files that are not accessed after this 30-day period. What steps should you take to achieve this cost efficiency?
A
Create an object lifecycle on the storage bucket to change the storage class to Archive Storage for objects with an age over 30 days.
B
Create a cron job in Cloud Scheduler to call a Cloud Functions instance every day to delete files older than 30 days.
C
Create a retention policy on the storage bucket of 30 days, and lock the bucket by using a retention policy lock.
D
Enable object versioning on the storage bucket and add lifecycle rules to expire non-current versions after 30 days.
No comments yet.