Professional Cloud Architect practice question · Managing implementation of cloud architecture
A team uses Terraform to manage Google Cloud infrastructure. Several engineers and a CI pipeline all run Terraform…
A team uses Terraform to manage Google Cloud infrastructure. Several engineers and a CI pipeline all run Terraform against the same environment, and runs sometimes overlap. Where should the Terraform state be kept?
- AIn a Cloud Storage bucket configured as the gcs backend, with Object Versioning enabled and access limited to the pipeline and admins
- BIn the Git repository next to the configuration, so every engineer and pipeline run pulls the same version-controlled copy
- CIn the local working directory of a dedicated CI runner, backed by a persistent disk with daily snapshots
- DIn Secret Manager as a secret version that each run downloads before planning and uploads again after applying
Show the answer and explanation
Correct answer: A) In a Cloud Storage bucket configured as the gcs backend, with Object Versioning enabled and access limited to the pipeline and admins
When a team shares Terraform state, it should live in a remote Cloud Storage (gcs) backend. That backend provides state locking, Object Versioning keeps a history of state, and bucket access can be restricted. Local files, Git, and hand-rolled copying don't protect against concurrent writes.
Why each option is right or wrong
- A) Correct. Google recommends the Cloud Storage backend for teams. It locks state so overlapping runs can't write at the same time, Object Versioning keeps earlier state versions for recovery, and limiting bucket access protects any sensitive values stored in the state.
- B) Incorrect. State can contain sensitive values in plaintext, so committing it exposes them. Git also has no state locking, so two runs that overlap can still overwrite each other's changes.
- C) Incorrect. This is still local state. Engineers running Terraform from their own machines can't share it, it offers no locking, and daily snapshots don't stop concurrent writes from corrupting it.
- D) Incorrect. Secret Manager isn't a Terraform state backend. Copying state in and out by hand has no locking, so overlapping runs can overwrite each other's results.
- Exam domain
- Managing implementation of cloud architecture · ~12.5% of Professional Cloud Architect
- Question type
- Multiple choice (one answer)
Related Professional Cloud Architect questions
- A team wants a new Cloud Run revision to receive 5% of production traffic for validation, then ramp up to 100%.Managing implementation of cloud architecture
- A team on GKE wants to release a new service version. Real users should be served by the new version, but at first only…Managing implementation of cloud architecture
- Your team is preparing a significant production release and the change process requires a rollback plan.Managing implementation of cloud architecture
- A team's Cloud Build pipelines must download dependencies from a self-hosted artifact repository.Managing implementation of cloud architecture
All 49 free Professional Cloud Architect questions by domain · 15 sample questions on one page
Practise the full Professional Cloud Architect exam
This question is one of a small free sample from the CertRidge Professional Cloud Architect bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.
Original question written from the official exam guide. Not affiliated with Google Cloud; never copied from the real exam.