Google Cloud Associate Cloud Engineer — Question 18
You need to create an autoscaling managed instance group for an HTTPS web application. You want to make sure that unhealthy VMs are recreated. What should you do?
Answer options
- A. Create a health check on port 443 and use that when creating the Managed Instance Group.
- B. Select Multi-Zone instead of Single-Zone when creating the Managed Instance Group.
- C. In the Instance Template, add the label 'health-check'.
- D. In the Instance Template, add a startup script that sends a heartbeat to the metadata server.
Correct answer: A
Explanation
The correct answer is A because setting up a health check on port 443 allows the Managed Instance Group to monitor the health of the VMs and recreate any that are deemed unhealthy. Option B does not directly address the health check requirement, while option C and D do not provide a mechanism to automatically recreate unhealthy instances.