Easy1 markMultiple Choice
Domain 4.4: Managing storage and database solutionsCloud StorageLifecycle ManagementCost Optimization
GCP ACE · Question 36 · Domain 4.4: Managing storage and database solutions
You have a Cloud Storage bucket containing millions of images. You want to automatically transition images older than 90 days to Nearline storage to save costs, and delete images older than 365 days.
What is the MOST efficient way to implement this?
You have a Cloud Storage bucket containing millions of images. You want to automatically transition images older than 90 days to Nearline storage to save costs, and delete images older than 365 days.
What is the MOST efficient way to implement this?
Answer options:
A.
Write a Cloud Function triggered by a Cloud Scheduler job to run a gsutil script daily.
B.
Configure an Object Lifecycle Management policy on the bucket.
C.
Use the Storage Transfer Service to move old files to a new Nearline bucket.
D.
Manually run 'gsutil rewrite' commands every month.
How to approach this question
Identify the native Cloud Storage feature for automating data retention and tiering.
Full Answer
B.Configure an Object Lifecycle Management policy on the bucket.✓ Correct
Configure an Object Lifecycle Management policy on the bucket.
Cloud Storage Object Lifecycle Management allows you to set rules on a bucket. GCP will automatically evaluate objects against these rules and perform actions (like SetStorageClass to Nearline, or Delete) when the conditions (like Age > 90 days) are met.
Common mistakes
Choosing to write a custom script, which ignores the built-in managed service.
Practice the full GCP Associate Cloud Engineer Practice Exam 2
50 questions · hints · full answers · grading
More questions from this exam
Q01Your company is migrating to Google Cloud and needs to establish a resource hierarchy. You have t...EasyQ02You are managing access to a GCP project. You need to grant 15 developers the ability to view Com...MediumQ03You have created a new GCP project using the Cloud Console. You want to deploy a Cloud Function u...EasyQ04Your startup has a strict monthly cloud budget of $500. You want to be notified immediately if yo...EasyQ05Your finance team wants to perform complex SQL analysis on your GCP billing data to understand co...Medium
Expert