
Google Associate Cloud Engineer
Get started today
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?
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?
Explanation:
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.