Your compliance team mandates that any object stored in the logs-prod Cloud Storage bucket be moved from the Standard storage class to Coldline exactly 180 days after it is created. Application code must not be changed, and the solution should require minimal ongoing operations. Which configuration best meets these requirements?
Run a periodic gsutil -m mv job from a Compute Engine instance to move objects older than 180 days to Coldline storage.
Add a bucket lifecycle rule whose action is SetStorageClass: Coldline with a condition age: 180.
Deploy a Cloud Function triggered by Cloud Scheduler every day that copies objects older than 180 days to a new Coldline bucket and deletes the originals.
Enable Object Versioning and set a bucket retention policy of 180 days so older versions are automatically stored in Coldline.
A lifecycle management rule is the simplest, fully managed way to automate storage-class transitions without touching application code. A rule with the action SetStorageClass set to Coldline and the condition age = 180 automatically rewrites each eligible object's metadata when it turns 180 days old, changing its class in place. Object retention policies or versioning do not switch storage classes; they only restrict deletions or keep older versions. Scheduled jobs or manual gsutil commands add operational overhead and are unnecessary when lifecycle rules natively support this transition.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a bucket lifecycle rule in Google Cloud Storage?
Open an interactive chat with Bash
How does the SetStorageClass action work in a lifecycle rule?
Open an interactive chat with Bash
Why is a lifecycle rule better than manual scripts or scheduled jobs for storage management?
Open an interactive chat with Bash
What is a bucket lifecycle rule in Google Cloud Storage?
Open an interactive chat with Bash
What is the Coldline storage class in Google Cloud?
Open an interactive chat with Bash
Why is using lifecycle rules better than a manual gsutil command for storage class transitions?
Open an interactive chat with Bash
GCP Associate Cloud Engineer
Ensuring successful operation of a cloud solution
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .