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?
Click on the arrows to vote for the correct answer
A. B. C. D.B.
To configure 10 Compute Engine instances for availability during maintenance, while also ensuring that they automatically restart if they crash, you should follow the steps outlined in option A:
A. 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.
Explanation:
Create an instance template: An instance template is a blueprint that defines the settings for the VM instances that you create. By using an instance template, you can easily create VM instances that have the same configuration settings.
Set the Automatic Restart' to on: This setting ensures that your VM instances will automatically restart if they crash. This means that if an instance experiences a failure, it will automatically reboot itself, which can help to reduce downtime.
Set the On-host maintenance' to Migrate VM instance: This setting ensures that your VM instances will be highly available during system maintenance. When Google Cloud Platform needs to perform maintenance on the physical host where your VM instance is running, the instance will be automatically migrated to a new host, without any disruption to your application.
Add the instance template to an instance group: An instance group is a collection of VM instances that can be managed as a single entity. By adding your instance template to an instance group, you can ensure that all instances in the group have the same configuration settings and will be automatically restarted if they crash.
In summary, option A is the correct answer because it involves creating an instance template with Automatic Restart set to on and On-host maintenance set to Migrate VM instance, which will ensure that the instances are highly available during system maintenance, and that they will automatically restart if they crash. Additionally, adding the instance template to an instance group will make it easy to manage all the instances as a single entity.