PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #77
PROFESSIONAL-CLOUD-DEVOPS-ENGINEER Question #77: Real Exam Question with Answer & Explanation
Sign in or unlock PROFESSIONAL-CLOUD-DEVOPS-ENGINEER to reveal the answer and full explanation for question #77. The question stem and answer options stay visible for context.
Question
You use Terraform to manage an application deployed to a Google Cloud environment. The application runs on instances deployed by a managed instance group. The Terraform code is deployed by using a CI/CD pipeline. When you change the machine type on the instance template used by the managed instance group, the pipeline fails at the terraform apply stage with the following error message: You need to update the instance template and minimize disruption to the application and the number of pipeline runs. What should you do?
Options
- ADelete the managed instance group, and recreate it after updating the instance template.
- BAdd a new instance template, update the managed instance group to use the new instance
- CRemove the managed instance group from the Terraform state file, update the instance template,
- DSet the create_before_destroy meta-argument to true in the lifecycle block on the instance
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.