You are writing a lifecycle rule for a Cloud Storage bucket that holds objects in Standard, Nearline, and Coldline storage classes. Any object that is still in the Standard storage class and is at least 90 days old must be moved to Coldline, while Nearline or Coldline objects should remain untouched. The draft rule below is moving Nearline objects as well:
The lifecycle rule's age condition alone applies to every object, regardless of its current class. Adding "matchesStorageClass": ["STANDARD"] limits the rule to objects whose present storage class is Standard. Because the rule no longer matches Nearline or Coldline objects, those objects are excluded and stay in their existing class. Using matchesStorageClass with any other value, omitting it, or adding an isLive filter does not meet the stated requirement.
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 the 'matchesStorageClass' condition in a lifecycle rule?
Open an interactive chat with Bash
What do 'Standard,' 'Nearline,' and 'Coldline' storage classes mean in Google Cloud Storage?
Open an interactive chat with Bash
How does the 'age' condition in a lifecycle rule work?
Open an interactive chat with Bash
What is the purpose of lifecycle rules in Cloud Storage?
Open an interactive chat with Bash
What is 'matchesStorageClass' in a lifecycle rule?
Open an interactive chat with Bash
What are the benefits of the Coldline storage class in Cloud Storage?
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 .