QuestionQ147

VerifiedPlanning and implementing a cloud solution

You need to configure 10 Compute Engine instances so they remain available during maintenance events. The requirements specify that:

  • The instances should attempt to automatically restart if they crash.
  • The instances should be highly available, including during system maintenance.

What should you do?

Explanation

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.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!