Your application is running on Google Cloud in a managed instance group (MIG). You see errors in Cloud Logging for one VM that one of the processes is not responsive. You want to replace this VM in the MIG quickly. What should you do?
- AUse the gcloud compute instances update command with a REFRESH action for the VM.
- BUse the gcloud compute instance-groups managed recreate-instances command to recreate the VM. (correct answer)
- CSelect the MIG from the Compute Engine console and, in the menu, select Replace VMs.
- DUpdate and apply the instance template of the MIG.
Reveal answer & explanationHide answer
The correct answer is B. Option B: Use the gcloud compute instance-groups managed recreate-instances command to recreate the VM.