GCP Professional Cloud Architect Practice Question
Your team stores environment configuration files in a single Cloud Storage bucket. A CI/CD job overwrites several of these JSON files many times per day. Occasionally a bad deployment overwrites a file with incorrect contents, and engineers need the ability to roll back to any previous copy quickly. They also want to limit additional storage costs by removing obsolete copies after 30 days. Which single bucket configuration change best satisfies these requirements?
Enable Object Versioning on the bucket and add an Object Lifecycle Management rule that deletes noncurrent object versions older than 30 days.
Apply a 30-day bucket retention policy and place temporary holds on objects to prevent deletion during that period.
Change the bucket's default storage class to Nearline and require the CI/CD pipeline to save each update under a unique object name.
Enable Cloud Storage access logging to a separate bucket and use the logs to reconstruct previous versions of the overwritten files.
Enabling Object Versioning preserves each generation of an object whenever it is overwritten or deleted, allowing engineers to restore any previous version. Combining this with an Object Lifecycle Management rule that deletes noncurrent versions after 30 days automatically removes obsolete generations, controlling storage costs. A bucket retention policy prevents deletions rather than keeping multiple generations, so it does not provide rollback to earlier contents. Simply switching to Nearline storage or relying on access logs would not capture overwritten data in retrievable versions, nor would it automate cleanup after 30 days.
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 Object Versioning in Cloud Storage?
Open an interactive chat with Bash
What is Object Lifecycle Management in Cloud Storage?
Open an interactive chat with Bash
Why does a bucket retention policy not work for rollback scenarios?
Open an interactive chat with Bash
What is Object Versioning in Cloud Storage?
Open an interactive chat with Bash
What is an Object Lifecycle Management rule?
Open an interactive chat with Bash
How does a bucket retention policy differ from Object Versioning?
Open an interactive chat with Bash
GCP Professional Cloud Architect
Managing and provisioning a solution infrastructure
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 .