
Answer-first summary for fast verification
Answer: Write a lifecycle management rule in JSON and push it to the bucket with gsutil
The correct answer is B. Cloud Storage lifecycle management rules allow you to automate the deletion of objects based on specified criteria, such as age. Writing a lifecycle management rule in JSON and pushing it to the bucket with gsutil is a cloud-native approach supported by Google Cloud. JSON format is preferred for its efficiency and ease of use. Options A, C, and D are either not cloud-native or not suitable for specifying lifecycle rules based on object age.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
In your role as a Google Cloud Architect, you need to develop a solution to manage your Cloud Storage bucket used for storing backups. Specifically, you want to automatically remove backup files that are older than 90 days to reduce ongoing Cloud Storage costs. Which of the following methods should you utilize to accomplish this task?
A
Write a lifecycle management rule in XML and push it to the bucket with gsutil
B
Write a lifecycle management rule in JSON and push it to the bucket with gsutil
C
Schedule a cron script using gsutil ls -lr gs://backups/** to find and remove items older than 90 days
D
Schedule a cron script using gsutil ls -l gs://backups/** to find and remove items older than 90 days and schedule it with cron
No comments yet.