GCP ACE · Question 37 · Domain 4.4: Managing storage and database solutions
You have a Cloud Storage bucket used for storing daily database backups. You want to automatically transition backups older than 30 days to Coldline storage, and delete backups older than 365 days.
What is the MOST efficient way to implement this?
Answer options:
Write a bash script using gsutil to move and delete files, and run it daily via a cron job.
Create a Cloud Function triggered by a Cloud Scheduler job to manage the objects.
Configure Object Lifecycle Management rules on the bucket.
Use Cloud Dataflow to process and move the files daily.
50 questions · hints · full answers · grading