
Answer-first summary for fast verification
Answer: Define a lifecycle policy JSON with an action on SetStorageClass to COLDLINE with an age condition of 365 and matchStorageClass STANDARD.
Option D is the correct answer because it directly implements a Cloud Storage lifecycle policy that automatically moves objects from STANDARD to COLDLINE storage class after 365 days, which is the exact requirement stated in the question. This is a native GCP feature specifically designed for this purpose, requiring no custom scripting or manual intervention. Option A is incorrect as Cloud Asset Inventory only reports configurations but doesn't implement changes. Option B is inefficient as it requires custom scripting and scheduled jobs when a native solution exists. Option C is incorrect because Autoclass automatically manages storage classes based on access patterns, not based on specific age thresholds like 365 days, and doesn't provide the precise control needed for this requirement.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You need to automatically change the storage class of objects older than 365 days to Coldline in your Cloud Storage buckets to reduce costs. What is the correct approach?
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.