You deploy an application in a managed instance group and must ensure the application is always running with exactly one VM instance per GCP project. How should you configure the instance group?
Choose an answer
Tap an option to check your answer.
Correct answer: Enable autoscaling and set minimum instances = 1 and maximum instances = 1..
Why this is the answer
To ensure the application is always running with exactly one VM instance, you need to use autoscaling with specific minimum and maximum instance counts. Enabling autoscaling allows the managed instance group (MIG) to automatically maintain the desired number of instances, even if an instance fails. Setting both minimum instances = 1 and maximum instances = 1 guarantees that the MIG will always have exactly one running VM. Disabling autoscaling would prevent the MIG from automatically replacing a failed instance, potentially leading to downtime if the single VM fails. Setting maximum instances = 2 would allow the MIG to scale up to two instances, which violates the requirement of "exactly one VM instance.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed