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)

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