Your team stores daily log files in a Standard-class Cloud Storage bucket. Compliance requires that objects be moved to Coldline storage 30 days after creation and be permanently deleted 365 days after creation. You must implement this with the fewest lifecycle rules and without changing IAM settings. Which configuration meets the requirement?
Create two lifecycle rules: one that sets the storage class to Coldline when the object's age is 30 days, and a second that deletes the object when its age is 365 days.
Create one lifecycle rule that sets the storage class to Coldline at 30 days and enable a 365-day bucket-level retention policy to enforce deletion.
Enable object versioning, then create one rule that sets noncurrent object versions to Coldline at 30 days and deletes them at 365 days.
Create a single lifecycle rule that lists both SetStorageClass to Coldline and Delete actions, each with its own age condition.
A Cloud Storage lifecycle rule can contain only one action. Because you need two different actions-first SetStorageClass to Coldline, then Delete-you must create two separate rules. The first rule uses the age condition of 30 days with the SetStorageClass action pointing to Coldline. The second rule uses the age condition of 365 days with the Delete action. When evaluated daily, objects transition at 30 days and are deleted at 365 days. A single rule cannot specify multiple actions, and relying on object versioning or bucket retention policies is unnecessary and would add complexity.
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 lifecycle rules in Cloud Storage?
Open an interactive chat with Bash
What is the difference between Coldline storage and Standard storage?
Open an interactive chat with Bash
Why does a lifecycle rule in Cloud Storage allow only one action?
Open an interactive chat with Bash
What is a Cloud Storage lifecycle rule in GCP?
Open an interactive chat with Bash
Why do lifecycle rules in GCP allow only one action per rule?
Open an interactive chat with Bash
What are the benefits of Coldline storage class in GCP?
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 .