Associate Cloud Engineer Exam QuestionsBrowse all questions from this exam

Associate Cloud Engineer Exam - 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?

Show Answer
Correct Answer: AB

To ensure high availability and automatic restart of Compute Engine instances, you should create an instance template and set 'Automatic Restart' to on, which ensures the instances will restart if they crash. Additionally, setting 'On-host maintenance' to Migrate VM instance ensures that instances are live migrated to another host during system maintenance, maintaining availability. Adding the instance template to an instance group helps in managing the instances collectively and adds benefits such as auto-scaling and load-balancing.

Discussion

17 comments
Sign in to comment
lio123Option: A
Mar 12, 2021

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.

Imdeepak12Option: A
Oct 11, 2021

Seems like it was a very obvious option i.e. A...Who selected B, I want to know his/her location?

Kickbuttowski_
Nov 18, 2021

Nikki singh.

aldrinzee
Dec 14, 2022

lol, yeah i want to examine their brain as well

BuruguduystunstugudunstuyOption: A
Feb 19, 2023

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.

kenrichy
Mar 19, 2023

Hi Buru, as always, amazing explanation. many thanks!!

nik005Option: A
Oct 14, 2023

1 The best answer is 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. This will ensure that your instances are automatically restarted if they crash and that they are migrated during system maintenance, which will keep them highly available. The other options are not as effective: Option B is not as effective because it will prevent your instances from being automatically restarted if they crash. Option C is not as effective because it will not migrate your instances during system maintenance, which could lead to downtime. Option D is not as effective because it does not guarantee that your instances will be automatically migrated during system maintenance.

pythoniggerOption: A
Dec 31, 2023

simple... Automatic Restart ON vs OFF (obvious ON), On Host Maintainence MIGRATE vs TERMINATE (really??!)

PavanPallaOption: A
Jan 2, 2023

yes, correct answer is 'A' only...can see options during the Instance Template creation as well.

vonquestorOption: A
Jan 2, 2023

Should be A

Zahir1004Option: A
Mar 9, 2023

I vote for D

MahAliOption: A
Mar 29, 2023

A is correct

TechnobieOption: A
Apr 4, 2023

A is correct for sure - yt- the Technobie

Vamshi_KrishnaOption: A
May 1, 2023

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.

sthapitOption: A
Aug 9, 2023

The correct option is: 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: The scenario requires configuring Compute Engine instances for availability during maintenance while also enabling automatic restart if they crash. Google Cloud Platform provides features and settings to achieve high availability and automatic restart for instances. Option A outlines the appropriate steps

Captain1212Option: A
Sep 1, 2023

A seems more legit rightt ?

nnecodeOption: A
Sep 13, 2023

I choose A

gsmasadOption: A
Nov 1, 2023

A is correct because you need HA of VMs during mainetence

junkyaardOption: A
Dec 22, 2023

A is correct because automatic restart will restart the instance if it crashes and setting on host maintenance to migrate the instance will not let the application go down during maintenance. It fulfills the requirements of automatically restarting the instances if they crash and ensuring that they are not lost during system maintenance activity. By setting the 'Automatic Restart' to on, the instances will attempt to automatically restart if they crash. By setting the 'On-host maintenance' to Migrate VM instance, the instances will be migrated to another host during system maintenance, preventing any downtime.

VJ26Option: A
Jul 10, 2024

A looks obvious. B doesnt sound correct