ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 4 - Professional Cloud DevOps Engineer discussion

Report
Export

You are using Terraform to manage infrastructure as code within a Cl/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?

A.
Create a new pipeline to delete old infrastructure stacks when they are no longer needed
Answers
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. if state file from Cloud Storage with the Terraform gcs backend
Answers
B.
Confirm that the pipeline is storing and retrieving the terraform. if state file from Cloud Storage with the Terraform gcs backend
C.
Verify that the pipeline is storing and retrieving the terrafom.tfstat* file from a source control
Answers
C.
Verify that the pipeline is storing and retrieving the terrafom.tfstat* file from a source control
D.
Update the pipeline to remove any existing infrastructure before you apply the latest configuration
Answers
D.
Update the pipeline to remove any existing infrastructure before you apply the latest configuration
Suggested answer: B

Explanation:

The best option for optimizing your cloud spend by ensuring that only a single instance of your infrastructure stack exists at a time is to confirm that the pipeline is storing and retrieving the terraform.tfstate file from Cloud Storage with the Terraform gcs backend. The terraform.tfstate file is a file that Terraform uses to store the current state of your infrastructure. The Terraform gcs backend is a backend type that allows you to store the terraform.tfstate file in a Cloud Storage bucket. By using the Terraform gcs backend, you can ensure that your pipeline has access to the latest state of your infrastructure and avoid creating multiple copies of the entire infrastructure stack.

asked 18/09/2024
terence o oneill
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first