Google Cloud Professional Cloud Security Engineer — Question 288
You are managing data in your organization's Cloud Storage buckets and are required to retain objects. To reduce storage costs, you must automatically downgrade the storage class of objects older than 365 days to Coldline storage. What should you do?
Answer options
- A. Use Cloud Asset Inventory to generate a report of the configuration of all storage buckets. Examine the Lifecycle management policy settings and ensure that they are set correctly.
- B. Set up a CloudRun Job with Cloud Scheduler to execute a script that searches for and removes flies older than 365 days from your Cloud Storage.
- C. Enable the Autoclass feature to manage all aspects of bucket storage classes.
- D. Define a lifecycle policy JSON with an action on SetStorageClass to COLDLINE with an age condition of 365 and matchStorageClass STANDARD.
Correct answer: D
Explanation
The correct answer is D because defining a lifecycle policy JSON specifically targets the objects older than 365 days and changes their storage class to Coldline, meeting the requirement. Option A does not implement the necessary changes to the storage class, option B focuses on deletion rather than changing storage classes, and option C does not specify the aging condition needed to manage the objects appropriately.