Topic 1 Question 47
You want to configure 10 Compute Engine instances for availability when maintenance occurs. Your requirements state that these instances should attempt to automatically restart if they crash. Also, the instances should be highly available including during system maintenance. What should you do?
Create an instance template for the instances. Set the 'Automatic Restart' to on. Set the 'On-host maintenance' to Migrate VM instance. Add the instance template to an instance group.
Create an instance template for the instances. Set 'Automatic Restart' to off. Set 'On-host maintenance' to Terminate VM instances. Add the instance template to an instance group.
Create an instance group for the instances. Set the 'Autohealing' health check to healthy (HTTP).
Create an instance group for the instance. Verify that the 'Advanced creation options' setting for 'do not retry machine creation' is set to off.
ユーザの投票
コメント(17)
A https://cloud.google.com/compute/docs/instances/setting-instance-scheduling-options
onHostMaintenance: Determines the behavior when a maintenance event occurs that might cause your instance to reboot.
[Default] MIGRATE, which causes Compute Engine to live migrate an instance when there is a maintenance event. TERMINATE, which stops an instance instead of migrating it. automaticRestart: Determines the behavior when an instance crashes or is stopped by the system.
[Default] true, so Compute Engine restarts an instance if the instance crashes or is stopped. false, so Compute Engine does not restart an instance if the instance crashes or is stopped.
👍 37lio1232021/03/11Seems like it was a very obvious option i.e. A...Who selected B, I want to know his/her location?
👍 20Imdeepak122021/10/11- 正解だと思う選択肢: A
ANSWER A. CORRECT. Create an instance template for the instances. Set the 'Automatic Restart' to on. Set the 'On-host maintenance' to Migrate VM instance. Add the instance template to an instance group.
To ensure the availability of instances during maintenance and restart instances in the event of a crash, you should create an instance group with an instance template that specifies 'Automatic Restart' to on. This will allow your instance to restart in the event of a crash.
Additionally, you should set the 'On-host maintenance' to Migrate VM instance so that VM instances are live migrated to another host in the event of an infrastructure maintenance event.
The instance group should have a health check configured to verify that the instances are healthy. By using an instance group, you can also take advantage of the autoscaling and load-balancing capabilities that come with instance groups.
👍 6Buruguduystunstugudunstuy2023/02/19
シャッフルモード