Your organization ingests audit logs into the gs://audit-logs bucket. Objects are created in the Standard storage class, are queried frequently for the first month, and must remain undeletable for exactly 7 years (2 555 days) to satisfy compliance. After 30 days they should move to Nearline; after 120 days they should move to Coldline for the remainder of the retention period. Which bucket configuration meets these requirements with the fewest lifecycle rules?
Configure a 2 555-day retention policy and a single lifecycle rule that moves objects from Standard to Archive when Age > 30 days; omit any Delete rule because objects will age out automatically.
Add lifecycle rules only: SetStorageClass to Nearline at 30 days, SetStorageClass to Coldline at 120 days, Delete at 2 555 days; do not set a retention policy because the Delete rule already defines the window.
Enable an object hold on each new log file for 2 555 days and create one lifecycle rule that moves objects directly from Standard to Archive storage after 30 days; rely on manual deletion once the hold is cleared.
Enable a 2 555-day bucket retention policy and add three lifecycle rules: SetStorageClass to Nearline when Age > 30 days; SetStorageClass to Coldline when Age > 120 days; Delete when Age > 2 555 days.
A bucket-level retention policy guarantees that no user or automation can delete an object before the compliance window ends. Separate lifecycle SetStorageClass rules handle the two required class transitions: one when the object's age is greater than 30 days (Standard ➝ Nearline) and another when age is greater than 120 days (Nearline ➝ Coldline). A single Delete rule with an Age condition of 2 555 days removes the object immediately after the retention period. Because the retention policy blocks deletions before 7 years, the Delete rule cannot violate compliance yet allows fully automatic cleanup. Relying on lifecycle alone cannot enforce immutability, and replacing Coldline with Archive or omitting the retention policy would breach either the latency or compliance requirements.
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-level retention policy in GCP?
Open an interactive chat with Bash
What is the difference between Standard, Nearline, Coldline, and Archive storage classes in GCP?
Open an interactive chat with Bash
How do lifecycle rules enforce object transitions in GCP?
Open an interactive chat with Bash
What is a bucket retention policy in GCP?
Open an interactive chat with Bash
How do lifecycle rules work in GCP storage buckets?
Open an interactive chat with Bash
What are the differences between Standard, Nearline, Coldline, and Archive storage classes?
Open an interactive chat with Bash
What is a bucket retention policy in GCP?
Open an interactive chat with Bash
What is the difference between Nearline and Coldline storage classes?
Open an interactive chat with Bash
How do lifecycle rules work in GCP Cloud Storage?
Open an interactive chat with Bash
GCP Professional Data Engineer
Storing the data
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 .