nerdexam
Google

PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #58

You are using Terraform to manage infrastructure as code within a CI/CD pipeline. You notice that multiple copies of the entire infrastructure stack exist in your Google Cloud project, and a new copy

Sign in or unlock PROFESSIONAL-CLOUD-DEVOPS-ENGINEER to reveal the answer and full explanation for question #58. The question stem and answer options stay visible for context.

Submitted by dimitri_ru· Apr 18, 2026Building and implementing CI/CD pipelines for a service

Question

You are using Terraform to manage infrastructure as code within a CI/CD pipeline. You notice that multiple copies of the entire infrastructure stack exist in your Google Cloud project, and a new copy is created each time a change to the existing infrastructure is made. You need to optimize your cloud spend by ensuring that only a single instance of your infrastructure stack exists at a time. You want to follow Google-recommended practices. What should you do?

Options

  • ACreate a new pipeline to delete old infrastructure stacks when they are no longer needed.
  • BConfirm that the pipeline is storing and retrieving the terraform.tfstate file from Cloud Storage with
  • CVerify that the pipeline is storing and retrieving the terraform.tfstate file from a source control.
  • DUpdate the pipeline to remove any existing infrastructure before you apply the latest

Unlock PROFESSIONAL-CLOUD-DEVOPS-ENGINEER to see the answer

You've previewed enough free PROFESSIONAL-CLOUD-DEVOPS-ENGINEER questions. Unlock PROFESSIONAL-CLOUD-DEVOPS-ENGINEER for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Terraform#CI/CD#State Management#Cloud Cost Optimization
Full PROFESSIONAL-CLOUD-DEVOPS-ENGINEER Practice