ASSOCIATE-CLOUD-ENGINEER practice question 4 of 35
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?
Full set: 332 questionsThis solution correctly addresses all requirements for high availability as stated in the scenario. Using an instance template is the standard practice for creating multiple, identical instances. Setting 'Automatic Restart' to 'on' ensures that if a VM crashes due to an underlying hardware or system issue, Compute Engine will attempt to restart it. Setting 'On-host maintenance' to 'Migrate VM instance' enables live migration, where Google Cloud moves the running instance to another host in the same zone before maintenance begins, ensuring the instance remains available and avoiding downtime. Combining these settings in an instance template and applying it to an instance group provides a scalable and highly available configuration.
B. This configuration is the opposite of what is required for high availability. Disabling automatic restart and terminating instances during maintenance would lead to significant downtime.
C. Autohealing is for application-level failures (e.g., a frozen application), not for VM crashes or host maintenance events. The question specifies infrastructure-level availability, which is handled by restart and migration policies.
D. The 'do not retry machine creation' setting applies only to the initial creation of an instance within a group. It does not affect the availability of an already running instance.
1. Setting instance availability policies: The official Google Cloud documentation specifies the two key settings for instance availability.
On host maintenance: "To ensure that your instances continue to run during a host system event
Compute Engine can live migrate your running instances... Your instance continues to run on the new host while the original host is updated."
Automatic restart: "If your instance is set to terminate due to a host error
you can specify that Compute Engine should automatically restart the instance."
Source: Google Cloud Documentation
Compute Engine
"Setting instance availability policies". Section: "Setting the host maintenance policy" and "Setting the automatic restart policy".
2. Instance templates: This document explains the purpose and use of instance templates for creating consistent VM configurations.
"An instance template is a resource that you can use to create VM instances and managed instance groups (MIGs). Instance templates define the machine type
boot disk image or container image
labels
and other instance properties."
Source: Google Cloud Documentation
Compute Engine
"Instance templates". Section: "Overview".
3. Live Migration: This document details the live migration process
which is the mechanism behind the 'Migrate VM instance' setting.
"By default
standard instances are set to live migrate
where Compute Engine automatically migrates your instance away from an infrastructure maintenance event
and your instance remains running during the migration."
Source: Google Cloud Documentation
Compute Engine
"Live migration". Section: "How does live migration work?".
Keep practicing
Take the free ASSOCIATE-CLOUD-ENGINEER practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other ASSOCIATE-CLOUD-ENGINEER practice questions
- Question 1You need to verify that a Google Cloud Platform service account was created at a particul…
- Question 2You are building a new version of an application hosted in an App Engine environment. You…
- Question 3You need to create a new billing account and then link it with an existing Google Cloud P…
- Question 5You need to create a custom VPC with a single subnet. The subnet’s range must be as large…
- Question 6You significantly changed a complex Deployment Manager template and want to confirm that …
- Question 7You have an application that receives SSL-encrypted TCP traffic on port 443. Clients for …
