Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Google Exam Professional Cloud DevOps Engineer Topic 5 Question 82 Discussion

Actual exam question for Google's Professional Cloud DevOps Engineer exam
Question #: 82
Topic #: 5
[All Professional Cloud DevOps Engineer Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Vallie
1 months ago
I'm just glad I'm not the one who has to figure this out on a production system. Can you imagine the angry calls from the users if we botch this update?
upvoted 0 times
Alonso
15 days ago
Then we can gradually replace the instances in the group with the new template to minimize disruption.
upvoted 0 times
...
Viva
19 days ago
We should create a new instance template with the updated machine type and update the managed instance group to use the new template.
upvoted 0 times
...
...
James
1 months ago
Haha, I bet the Terraform maintainers had a good laugh when they came up with that `create_before_destroy` meta-argument. Looks like that might be the way to go here, though I'd want to test it out first.
upvoted 0 times
Evette
4 days ago
Agreed. Let's make sure to test it thoroughly to minimize any potential issues with the pipeline.
upvoted 0 times
...
Leota
23 days ago
That sounds like a good idea. We should definitely test it out first before making any changes.
upvoted 0 times
...
Shoshana
1 months ago
We could try using the `create_before_destroy` meta-argument to update the instance template without disrupting the application.
upvoted 0 times
...
...
Fannie
2 months ago
Wait, so we can't just delete the managed instance group and recreate it? That seems like the simplest solution, but I guess it could cause downtime. Gotta love Terraform's idempotency!
upvoted 0 times
Pok
6 days ago
Deleting and recreating the managed instance group could work, but it might cause downtime for the application.
upvoted 0 times
...
Darci
25 days ago
Another option is to manually update the instance template and then trigger a rolling update on the managed instance group.
upvoted 0 times
...
Dortha
29 days ago
You could create a new instance template with the updated machine type and then update the managed instance group to use the new template.
upvoted 0 times
...
...
Filiberto
2 months ago
Ah, I see. The key here is to minimize disruption to the application while updating the instance template. I think option B might be the best approach, but I'll need to double-check the details.
upvoted 0 times
Marjory
1 months ago
User 2: Yeah, I agree. Updating the managed instance group to use the new instance template and then deleting the old one sounds like a good plan.
upvoted 0 times
...
Ceola
1 months ago
User 1: I think option B is the way to go. It seems like the least disruptive option.
upvoted 0 times
...
...
Jose
2 months ago
Why do you think D is the correct answer?
upvoted 0 times
...
Elbert
2 months ago
Hmm, this is a tricky one. I'm not sure I fully understand the issue with the instance template change causing the pipeline to fail. I'll need to carefully read through the options and think this through.
upvoted 0 times
Jame
25 days ago
Definitely, we need to ensure that the application continues to run smoothly while updating the instance template.
upvoted 0 times
...
Joseph
27 days ago
That makes sense, it's important to minimize disruption when making changes to the infrastructure.
upvoted 0 times
...
Theresia
1 months ago
I agree, adding a new instance template and updating the managed instance group seems like the least disruptive option.
upvoted 0 times
...
Lera
2 months ago
Option B seems like the best approach to update the instance template without disrupting the application.
upvoted 0 times
...
...
Val
2 months ago
I disagree, I believe the correct answer is D.
upvoted 0 times
...
Jose
2 months ago
I think the answer is B.
upvoted 0 times
...

Save Cancel