Google Cloud Professional Cloud Architect — Question 28
You have an outage in your Compute Engine managed instance group: all instances 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?
Answer options
- A. Grant your colleague the IAM role of project Viewer
- B. Perform a rolling restart on the instance group
- C. Disable the health check for the instance group. Add his SSH key to the project-wide SSH Keys
- D. Disable autoscaling for the instance group. Add his SSH key to the project-wide SSH Keys
Correct answer: C
Explanation
The correct answer is C because disabling the health check allows the instances to stop failing and adding the SSH key ensures the colleague can access the VMs. Option A is incorrect as it does not provide necessary access to the VMs. Option B does not address the underlying issue of health checks. Option D is not correct because while it adds the SSH key, it doesn't address the health check that is causing the instances to restart.