Google Cloud Associate Cloud Engineer — Question 229

Your application stores files on Cloud Storage by using the Standard Storage class. The application only requires access to files created in the last 30 days. You want to automatically save costs on files that are no longer accessed by the application. What should you do?

Answer options

Correct answer: A

Explanation

The correct answer is A because setting an object lifecycle policy allows automatic transitioning of objects to a cheaper storage class after they exceed 30 days. Option B involves deletion rather than cost-saving through reduced storage class, while option C prevents the deletion of files for 30 days, which isn't useful for cost savings. Option D focuses on versioning, which does not address the requirement to save costs on older files.