
Answer-first summary for fast verification
Answer: Set autoscaling to On, set the minimum number of instances to 1, and then set the maximum number of instances to 1.
Option A is the correct answer. Setting autoscaling to On and configuring both the minimum and maximum number of instances to 1 ensures that the application will be running at all times with only a single instance of the VM. If the instance crashes or is deleted, the autoscaling mechanism will automatically create a new instance to maintain the desired minimum of 1 instance, thus ensuring high availability and compliance with the requirement of having only a single instance running per GCP project.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are tasked with deploying a critical application to a Google Cloud Platform (GCP) environment, specifically on a Compute Engine virtual machine (VM) within a managed instance group. The application requires high availability, implying it must remain operational at all times. However, it is crucial that only one instance of this VM is running within the entire GCP project to avoid conflicts and resource wastage. How should you set up the managed instance group to meet these requirements?
A
Set autoscaling to On, set the minimum number of instances to 1, and then set the maximum number of instances to 1.
B
Set autoscaling to Off, set the minimum number of instances to 1, and then set the maximum number of instances to 1.
C
Set autoscaling to On, set the minimum number of instances to 1, and then set the maximum number of instances to 2.
D
Set autoscaling to Off, set the minimum number of instances to 1, and then set the maximum number of instances to 2.
No comments yet.