In Compute Engine, the 'Automatic Restart' setting controls whether a VM is automatically restarted if it crashes or is terminated for a reason other than a user-initiated action, and the 'On-host maintenance' setting controls what happens to the VM when Google performs infrastructure maintenance on the host. Setting 'On-host maintenance' to 'Migrate VM instance' enables live migration, which transparently moves the running VM to another host during maintenance without requiring a reboot, keeping it available. Combining 'Automatic Restart: on' with 'On-host maintenance: Migrate VM instance' in an instance template, then applying that template to an instance group, satisfies both requirements—automatic recovery from crashes and continuous availability during host maintenance—for all 10 instances consistently. Autohealing health checks (choice C) address application-level failures, not host maintenance, and instance-group creation retry settings (choice D) address VM creation failures, not ongoing availability during maintenance.
Community Discussion