
Answer-first summary for fast verification
Answer: Use the gcloud compute instance-groups managed recreate-instances command to recreate the VM.
The correct answer is B. The command 'gcloud compute instance-groups managed recreate-instances' is specifically designed for recreating instances within a managed instance group. This action will replace the problematic virtual machine based on the current instance template, addressing the issue of the non-responsive process. This is a quick way to ensure the VM is replaced without manually updating and applying a new instance template.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your application is deployed on Google Cloud Platform (GCP) within a Managed Instance Group (MIG). Recently, you have observed specific error messages in Cloud Logging indicating that one of the virtual machines (VMs) in the MIG has a non-responsive process. To swiftly address this issue, you need to replace the problematic VM within the MIG. What steps should you follow to achieve this?
A
Use the gcloud compute instances update command with a REFRESH action for the VM.
B
Use the gcloud compute instance-groups managed recreate-instances command to recreate the VM.
C
Select the MIG from the Compute Engine console and, in the menu, select Replace VMs.
D
Update and apply the instance template of the MIG.
No comments yet.