GCP ACE · Question 37 · Domain 4.4: Managing storage and database solutions
Your application uploads daily reports to a Cloud Storage bucket. These reports are accessed frequently for the first 30 days, but rarely accessed after that. You want to automatically move objects older than 30 days to the Coldline storage class to save money.
What is the MOST efficient way to achieve this?
Answer options:
Write a Cloud Function triggered by a Cloud Scheduler job that runs daily, finds objects older than 30 days, and rewrites them to Coldline.
Configure an Object Lifecycle Management policy on the bucket to change the storage class to Coldline when the age is 30 days.
Use the gsutil rewrite command manually at the end of every month.
Set the bucket's default storage class to Coldline.
50 questions · hints · full answers · grading