Medium1 markMultiple Choice
GCP ACE · Question 20 · Domain 3.1: Deploying and implementing Compute Engine resources
You have a Managed Instance Group (MIG) running a web application. You need to update the OS image for all instances in the group to patch a critical security vulnerability, without causing downtime.
Which TWO steps should you take? (Select TWO)
You have a Managed Instance Group (MIG) running a web application. You need to update the OS image for all instances in the group to patch a critical security vulnerability, without causing downtime.
Which TWO steps should you take? (Select TWO)
Answer options:
A.
Create a new instance template with the updated OS image
B.
Update the existing instance template with the new OS image
C.
Start a rolling update on the MIG using the new instance template
D.
Delete and recreate the Managed Instance Group
E.
SSH into each instance and run apt-get upgrade
How to approach this question
Remember that instance templates are immutable. To update a MIG, you need a new template and a rolling update.
Full Answer
In Google Cloud, Instance Templates are immutable; they cannot be changed after creation. To update the instances in a Managed Instance Group (MIG), you must first create a new instance template referencing the patched OS image. Then, you initiate a 'rolling update' on the MIG, which systematically replaces the old instances with new ones, maintaining availability.
Common mistakes
Believing you can edit an existing instance template, or choosing manual SSH updates which defeats the purpose of managed groups.
Practice the full GCP Associate Cloud Engineer Practice Exam 5
50 questions · hints · full answers · grading
More questions from this exam
Q01You are starting a new initiative and need to create a new Google Cloud project using the command...EasyQ02A developer on your team needs to manage App Engine applications, including deploying new version...MediumQ03You have created a new Google Cloud project. You need to allow a specific group of developers to ...MediumQ04Which statement best describes the relationship between Google Cloud projects and billing accounts?EasyQ05Your company wants to be notified immediately in their Slack channel whenever their monthly Googl...Medium
Expert