GCP ACE · Question 37 · Domain 4.4: Managing storage and database solutions
You have a Cloud Storage bucket that receives thousands of image files daily. You want to automatically transition these files to Nearline storage after 30 days, and then delete them after 365 days.
What is the most efficient way to implement this?
Answer options:
Write a Cloud Function triggered by a Cloud Scheduler cron job to move and delete the files.
Configure an Object Lifecycle Management policy on the bucket.
Use the gsutil rewrite command in a bash script running on a Compute Engine VM.
Set the default storage class of the bucket to Nearline.
50 questions · hints · full answers · grading