Medium1 markMultiple Choice
Domain 3.1: Deploying and implementing Compute Engine resourcesCompute EngineMIGAutoscalingInstance Templates

GCP ACE · Question 20 · Domain 3.1: Deploying and implementing Compute Engine resources

You are deploying a web application on Compute Engine. You want the application to automatically scale out (add more instances) when CPU utilization exceeds 70%, and scale in when traffic drops. You also want instances to be automatically recreated if they crash.

What is the correct sequence of resources you need to create?

Answer options:

A.

Unmanaged Instance Group -> Autoscaler -> Load Balancer

B.

Instance Template -> Managed Instance Group (MIG) -> Autoscaler

C.

Custom Image -> Autoscaler -> Managed Instance Group (MIG)

D.

Instance Template -> Unmanaged Instance Group -> Autoscaler

How to approach this question

Understand the dependencies for autoscaling in Compute Engine.

Full Answer

B.Instance Template -> Managed Instance Group (MIG) -> Autoscaler✓ Correct
Instance Template -> Managed Instance Group (MIG) -> Autoscaler
To configure autoscaling, you first need an Instance Template (the blueprint). Then, you create a Managed Instance Group (MIG) based on that template. Finally, you configure an Autoscaler policy on the MIG to scale based on metrics like CPU utilization.

Common mistakes

Thinking Unmanaged Instance Groups can autoscale.

Practice the full GCP Associate Cloud Engineer Practice Exam 2

50 questions · hints · full answers · grading

More questions from this exam