Your team stores transactional CSV files in a Cloud Storage bucket using the Standard storage class. You must reduce costs by (1) transitioning each object to Nearline 7 days after it is created and (2) permanently deleting the file 30 days after creation, but only if the object is still in the Standard storage class. Which lifecycle configuration meets the requirements?
Two separate lifecycle rules are needed. A SetStorageClass rule with the action SetStorageClass and the condition age: 7 moves every object from Standard to Nearline after 7 days, lowering storage costs quickly. A second Delete rule with the condition age: 30 and matchesStorageClass: ["STANDARD"] removes any object that is at least 30 days old and still in the Standard class. Because an object moved to Nearline no longer matches the Standard class, it is not deleted at day 30, satisfying the requirement to delete only Standard-class objects.
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 are storage classes in Google Cloud Storage?
Open an interactive chat with Bash
How do lifecycle rules work in Google Cloud Storage?
Open an interactive chat with Bash
What does matchesStorageClass do in lifecycle rules?
Open an interactive chat with Bash
What is Cloud Storage lifecycle management?
Open an interactive chat with Bash
What are the benefits of the Nearline storage class?
Open an interactive chat with Bash
What does the `matchesStorageClass` condition in lifecycle rules do?
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
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .