Your company stores daily application logs in a Cloud Storage bucket using the Nearline storage class. Logs must be moved to Coldline exactly 30 days after they are written and automatically deleted 365 days after creation. You want to meet these requirements with the minimum number of lifecycle rules. Which lifecycle configuration should you apply?
Three lifecycle rules: age 30 days SetStorageClass to Coldline, age 180 days SetStorageClass to Archive, and age 365 days Delete.
One lifecycle rule that triggers at age 365 days and contains two actions: SetStorageClass to Coldline and Delete.
Two lifecycle rules:
Rule 1: action SetStorageClass to Coldline, condition age = 30 days.
Rule 2: action Delete, condition age = 365 days.
Two lifecycle rules:
Rule 1: action Delete, condition matchesStorageClass = Nearline and age = 365 days.
Rule 2: action Delete, condition matchesStorageClass = Coldline and age = 365 days.
Each lifecycle rule in Cloud Storage can specify only one action. Therefore, you need one rule to perform the storage-class transition and a second rule to delete the objects. A rule that sets the storage class to Coldline when the object's age reaches 30 days satisfies the first requirement, and a separate rule that deletes objects when their age reaches 365 days meets the retention requirement. A single rule with two actions is not supported, and adding any additional rules would be unnecessary.
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 Cloud Storage lifecycle rules?
Open an interactive chat with Bash
What is the difference between Nearline and Coldline storage classes?
Open an interactive chat with Bash
How are storage class transitions implemented in lifecycle rules?
Open an interactive chat with Bash
What is Nearline storage in Google Cloud Storage?
Open an interactive chat with Bash
What is Coldline storage 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
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 .