Google Associate Cloud Engineer Question 97
Select 2Google Cloud PlatformYou are tasked with setting up a highly available web application on Google Cloud Platform. To ensure the application can handle varying loads, you decide to create an autoscaled managed instance group using an instance template. Which of the following steps are necessary to accomplish this task?
- A
Create an instance template specifying the machine type, image, and startup script.
- B
Configure an autoscaler for the managed instance group with the desired target CPU utilization.
- C
Set up a global load balancer to distribute traffic across instances in the group.
- D
Manually add instances to the managed instance group to handle increased traffic.
- E
Create firewall rules to allow traffic to the instances in the managed instance group.
Show answer and explanation
Correct answers: A, B
Explanation
To create an autoscaled managed instance group, you must first define an instance template which specifies the configuration for the instances. Then, you need to configure an autoscaler to adjust the number of instances based on metrics such as CPU utilization. This setup ensures that the application can handle varying loads automatically, without manual intervention.
- A. Correct.
An instance template is required to define the configuration for the instances in the managed instance group, including machine type and image.
- B. Correct.
An autoscaler must be configured to automatically adjust the number of instances based on the target CPU utilization or other metrics.
- C. Incorrect.
While a load balancer is useful for distributing traffic, it is not part of creating an autoscaled managed instance group.
- D. Incorrect.
Instances are automatically added and removed by the autoscaler, so manual addition is not necessary.
- E. Incorrect.
Firewall rules are necessary for network security but not directly related to setting up an autoscaled managed instance group.