
Answer-first summary for fast verification
Answer: Create Object Lifecycle management policies.
**B is correct** because Object Lifecycle allows you to automate the implementation of your organization’s data policy. Creating Object Lifecycle management policies in Cloud Storage allows for a simple and automated way to implement the given guidelines. By creating lifecycle rules, data can be automatically transitioned to the appropriate storage class (such as ARCHIVE) based on its age. Additionally, data can be automatically deleted after a specified duration. This approach ensures compliance with the organization’s policy without the need for manual intervention or scripts. **A is incorrect** because it requires custom programming. Manually writing a script to copy and delete data based on age using CRON jobs would require more maintenance and management. It would also not be as efficient or scalable compared to using Object Lifecycle management policies. **C is incorrect** because it requires custom programming. Manually writing a script to set storage class and delete data based on age using CRON jobs would also require more maintenance and management. It would not provide the same simplicity and automation as using Object Lifecycle management policies. **D is incorrect** because DELETED is not a valid storage class. Creating separate buckets with different default storage classes and using a script to move data based on conditions would result in a more complex and cumbersome setup. Managing multiple buckets and scripts would require more maintenance and could introduce potential errors. Using Object Lifecycle management policies, as described in option B, provides a more streamlined and efficient solution. Links: https://cloud.google.com/storage/docs/lifecycle https://cloud.google.com/storage/docs/storage-classes
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your organization has started using Cloud Storage for storing its customer’s data. According to your organization’s policy, you need to follow certain regulations: 1) All data older than one year must be Archived. 2) Data older than 5 years must be deleted. 3) All other data must be stored on Standard storage. How can you implement these guidelines in a simple manner?
A
Write a script that runs daily using CRON to copy data that is older than one year to an archival bucket, and delete five-year-old data.
B
Create Object Lifecycle management policies.
C
Write a script that runs daily using CRON to set storage class to ARCHIVE for data that is older than one year, and delete five-year-old data.
D
No comments yet.