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?
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.
Answer is B.
B: You can recreate one or more VMs
C: Only option to replace each VMs in MIG
Compare it:
https://cloud.google.com/sdk/gcloud/reference/compute/instance-groups/managed/recreate-instances
https://cloud.google.com/sdk/gcloud/reference/compute/instance-groups/managed/rolling-action/replace
You can recreate specified instance(s) in a managed instance group.
https://cloud.google.com/sdk/gcloud/reference/compute/instance-groups/managed/recreate-instances
Following the document below is B:https://cloud.google.com/sdk/gcloud/reference/compute/instance-groups/managed/recreate-instances
upvoted 2 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
denno22
1 month, 1 week agoEnamfrancis
2 months agoBuenaCloudDE
4 months, 1 week agoLeo212003
4 months, 2 weeks agoleoalvarezh
9 months, 1 week agoRocky_Jatin
1 year, 1 month agoBen_oso
1 year, 2 months agoCaptain1212
1 year, 2 months agoscanner2
1 year, 2 months agoqannik
1 year, 3 months agoSperidian
1 year, 3 months agogpais
1 year, 3 months ago