Your company keeps quarterly financial reports in a Cloud Storage bucket named gs://corp-reports. Compliance now requires you to delete every object that was uploaded before 1 July 2022 while leaving newer files untouched. You decide to add a lifecycle rule that uses the createdBefore condition. Which value should you supply for createdBefore so the rule is accepted and functions as intended?
The createdBefore condition expects a calendar date formatted as YYYY-MM-DD and interprets that date at 00:00:00 UTC. Any object whose creation time is strictly earlier than that instant is selected by the rule. Therefore, to target objects uploaded before 1 July 2022 you must specify 2022-07-01. Supplying a timestamp, a locale-specific date such as 07/01/2022, or an ISO date-time string will cause the configuration to be rejected because they do not match the required syntax.
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 createdBefore condition in Cloud Storage lifecycle rules?
Open an interactive chat with Bash
Why does the createdBefore condition require the YYYY-MM-DD format?
Open an interactive chat with Bash
How can I confirm which objects will be affected by a lifecycle rule in Cloud Storage?
Open an interactive chat with Bash
How does the createdBefore condition work in Cloud Storage lifecycle rules?
Open an interactive chat with Bash
Why can't timestamps or locale-specific dates be used with createdBefore?
Open an interactive chat with Bash
What happens to objects created exactly on the createdBefore date?
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 .