Remove backup objects older than 90 days from a Cloud Storage bucket to optimize ongoing storage costs. What should you implement?
Choose an answer
Tap an option to check your answer.
Correct answer: Write a lifecycle management rule in JSON and push it to the bucket with gsutil.
Why this is the answer
Cloud Storage lifecycle management is the native and most efficient way to automatically manage object lifecycles, including deleting old objects. These rules are defined in JSON format. gsutil is the command-line tool used to apply these rules to buckets. Writing a lifecycle management rule in XML is incorrect as Cloud Storage uses JSON for these configurations. Scheduling a cron script using gsutil ls to find and remove items is inefficient and not the recommended approach, as it involves external computation and manual scripting rather than leveraging the built-in, optimized Cloud Storage features. The ls command itself only lists objects and doesn't perform deletion.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed