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?

  • Apply a 30-day bucket retention policy and place temporary holds on objects to prevent deletion during that period.

  • Enable Cloud Storage access logging to a separate bucket and use the logs to reconstruct previous versions of the overwritten files.

  • Enable Object Versioning on the bucket and add an Object Lifecycle Management rule that deletes noncurrent object versions older than 30 days.

  • Change the bucket's default storage class to Nearline and require the CI/CD pipeline to save each update under a unique object name.

GCP Professional Cloud Architect
Managing and provisioning a solution infrastructure
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot