118k views
5 votes
You have an outage in your Compute Engine managed instance group: all instance keep restarting after 5 seconds. You have a health check configured, but autoscaling is disabled. Your colleague, who is a Linux expert, offered to look into the issue. You need to make sure that he can access the VMs. What should you do?

A. Grant your colleague the IAM role of project ViewerB. Disable the health check for the instance group. Add his SSH key to the project-wide SSH keysC. Perform a rolling restart on the instance groupD. Disable autoscaling for the instance group. Add his SSH key to the project-wide SSH Keys

User Tomask
by
3.8k points

1 Answer

4 votes

Answer:

The answer to this question is option B which is "Disable the health check for the instance group. Add his SSH key to the project-wide SSH keys"

Step-by-step explanation:

Option A is not correct because to connect with SSH, IAM role is not needed.

Option C is incorrect because performing a rolling restart would mean you think the problem is with Google Compute engine

Option B is correct because on Google compute engine, there are automatic health checks which leads to a restart of your instance anytime it fails. Disabling the health check will stop restarting of your instance.

User Darksinge
by
3.9k points