
Ultimate access to all questions.
You are managing infrastructure as code with Terraform in a CI/CD pipeline and observe that multiple copies of the entire infrastructure stack are being created in your Google Cloud project, with a new copy generated for each change. To optimize cloud costs by maintaining only a single instance of the infrastructure stack at any time while adhering to Google-recommended practices, what should you do?
A
Create a new pipeline to delete old infrastructure stacks when they are no longer needed.
B
Confirm that the pipeline is storing and retrieving the terraform.tfstate file from Cloud Storage with the Terraform gcs backend.
C
Verify that the pipeline is storing and retrieving the terraform.tfstate file from a source control.
D
Update the pipeline to remove any existing infrastructure before you apply the latest configuration.