GCP Professional Cloud Security Engineer Practice Question
You manage a Cloud Storage bucket that receives daily transaction CSV files in the Standard storage class. The finance team requires two automated controls: (1) minimize storage costs by moving files to a lower-cost class 30 days after upload, and (2) permanently remove the files exactly one year after they have been moved. Which lifecycle rule configuration satisfies both requirements while following Google-recommended lifecycle actions?
Add a SetStorageClass action that changes objects to Nearline when Age = 30 days, plus a Delete action that removes objects when Age = 395 days.
Add a SetStorageClass action when Age = 30 days and another SetStorageClass action when Age = 365 days.
Add a single Delete action when Age = 365 days; no additional rules are needed.
Add a Delete action when Age = 30 days, and a SetStorageClass action to Nearline when Age = 395 days.
Cloud Storage lifecycle management supports two actions that are relevant here: SetStorageClass (to transition objects to a different storage class) and Delete (to remove objects). To cut costs after 30 days, you configure a SetStorageClass action that transitions objects from Standard to Nearline when their Age condition reaches 30 days. To meet the 12-month retention that starts at that point, you add a Delete action with an Age condition of 395 days (30 + 365). This ensures objects live 30 days in Standard, 365 additional days in Nearline, and are then deleted. Using Delete first, using SetStorageClass to delete data, or using only one type of action would fail to meet either the cost-optimization or retention 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 lifecycle management actions are available in Cloud Storage?
Open an interactive chat with Bash
What are the differences between Standard and Nearline storage classes?
Open an interactive chat with Bash
Why is the Delete action set to 395 days and not 365 days?
Open an interactive chat with Bash
What are storage classes in Google Cloud Storage and how do they differ?
Open an interactive chat with Bash
How does lifecycle management work in Google Cloud Storage?
Open an interactive chat with Bash
Why is the Delete action set to 395 days instead of exactly 365 days?
Open an interactive chat with Bash
GCP Professional Cloud Security Engineer
Ensuring data protection
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 .