You have enabled object versioning on a Cloud Storage bucket that ingests hundreds of daily CSV files. Governance rules mandate that every live object must be removed 365 days after its creation, while any non-current (non-live) object version may remain only 30 days after it became non-current. You need a lifecycle configuration that enforces these requirements without deleting objects prematurely. Which set of lifecycle rules should you apply to the bucket?
Two Delete rules: one with age: 365; a second with numNewerVersions: 30.
Two Delete rules using fixed calendar dates: createdBefore set to 365 days ago and noncurrentTimeBefore set to 30 days ago.
A single Delete rule with age: 365 and no isLive condition.
Two Delete rules: one with age: 365, isLive: true; a second with daysSinceNoncurrentTime: 30, isLive: false.
To meet both retention windows you need two independent Delete actions:
A rule that targets only live objects (isLive: true) and deletes them when their age reaches 365 days. This satisfies the one-year retention of the current revision.
A second rule that targets only non-live objects (isLive: false) and deletes them when daysSinceNoncurrentTime equals 30. This timer starts when a newer revision is made current, so it precisely controls the lifetime of previous versions. Using only an age condition without the isLive filter would treat live and non-live objects the same, violating the 30-day requirement. A rule that relies on numNewerVersions or fixed calendar dates would not guarantee rolling compliance as new objects arrive each day. Therefore the configuration that combines age: 365, isLive: true with daysSinceNoncurrentTime: 30, isLive: false is the only option that fulfills both policies safely.
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 Cloud Storage object versioning?
Open an interactive chat with Bash
What is the purpose of `isLive` in lifecycle rules?
Open an interactive chat with Bash
What is `daysSinceNoncurrentTime` in Cloud Storage lifecycle rules?
Open an interactive chat with Bash
What is object versioning in Cloud Storage?
Open an interactive chat with Bash
What does `isLive` mean in lifecycle rules?
Open an interactive chat with Bash
How does `daysSinceNoncurrentTime` work in lifecycle policies?
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 .