Associate Cloud Engineer Exam QuestionsBrowse all questions from this exam

Associate Cloud Engineer Exam - Question 4


You want to configure autohealing for network load balancing for a group of Compute Engine instances that run in multiple zones, using the fewest possible steps.

You need to configure re-creation of VMs if they are unresponsive after 3 attempts of 10 seconds each. What should you do?

Show Answer
Correct Answer: CD

To configure autohealing for a group of Compute Engine instances with a requirement to recreate VMs if they are unresponsive after a specified number of attempts, you need to use a managed instance group (MIG) with an autohealing policy. By setting the Autohealing health check to healthy (HTTP), the MIG can automatically recreate instances that fail the specified health checks. This setup ensures that instances are monitored and recreated if they are unresponsive, meeting the described criteria for autohealing without needing additional load balancer configurations.

Discussion

17 comments
Sign in to comment
ReyBanOption: C
May 4, 2020

C, Agreed reference : https://cloud.google.com/compute/docs/tutorials/high-availability-autohealing Pro Tip: Use separate health checks for load balancing and for autohealing. Health checks for load balancing detect unresponsive instances and direct traffic away from them. Health checks for autohealing detect and recreate failed instances, so they should be less aggressive than load balancing health checks. Using the same health check for these services would remove the distinction between unresponsive instances and failed instances, causing unnecessary latency and unavailability for your users.

ashrafh
Aug 17, 2021

I also vote for C go to gcp console create a httpa load balancer and in the health check settings take your mouse to question mark it says """Ensures that requests are sent only to instances that are up and running""" so its not recreating, if the vm not working it redirect to one which work. go to gpc console create MIG and check the questions mark of Autohealing health check settings it says """Autohealing allows recreating VM instances when needed. You can use a health check to recreate a VM instance if the health check finds it unresponsive. If you don't select a health check, Compute Engine will recreate VM instances only when they're not running.""" hope this help :)

bryanchewOption: A
Apr 5, 2020

A. Create an HTTP load balancer with a backend configuration that references an existing instance group. Set the health check to healthy(HTTP) This is a possible answer. This answer assumes that the existing backend is configured correctly. B. Create an HTTP load balancer with a backend configuration that references an existing instance group. Define a balancing mode and set the maximum RPS to 10. This is a possible answer. This answer assumes that the existing backend is configured correctly. This answer adds an additional step over answer A. C. Create a managed instance group. Set the Autohealing health check to healthy(HTTP) This is only a partial solution. The default configuration is auto scaling enabled. You still need to create the HTTP Load Balancer. D. Create a managed instance group. Verify that the auto scaling setting is on. This is only a partial solution. Creating a Managed Instance Group with Auto Scaling is required, but you still need to create the HTTP Load Balancer. Therefore the best answer is A in my opinion.

koniec
Nov 5, 2020

It's A. Managed group already exists so create a LB with health checks. If you go for C, you will have to create a LB anyway so it's more steps to achieve the goal

tavva_prudhvi
Apr 6, 2021

https://www.youtube.com/watch?v=dT7xDEtALPQ&list=PLIivdWyY5sqIij_cgINUHZDMnGjVx3rxi&index=36 step-1: go to the instance group step-2: click edit step-3: scroll down you will see auto-healing off by default change to ON step-4: create a health check saying 10 seconds as CHECK INTERVAL and UNHEALTHY THRESHOLD=3

DickDastardly
Mar 5, 2021

It can't be A as a load balancer does not re-create unhealthy instances, as per the requirement. Has to be C https://cloud.google.com/compute/docs/instance-groups

pYWORLD
Jul 28, 2021

I hope you saw that in the questions is stated: "network load balancing"

Ridhanya
Nov 26, 2021

it cannot be option A because as you said, load balancer with the health check is already present and now the problem is simply auto healing. so we need to focus only on recreation which can happen only if option C is correct

Mamoon2023
May 8, 2023

I am preparing for GCP Associate engineer exam. If anyone has the entire questions set, please share them to <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a1ccc0cccececf9893e1c6ccc0c8cd8fc2cecc">[email protected]</a>

rosh199Option: C
Jul 19, 2023

I also vote for C

MogamatOption: C
Jul 24, 2023

Answe C

rejar
Aug 10, 2023

I am preparing for GCP Associate engineer exam. I was able to access 92 questions only, if anyone has the entire questions please share them to my <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6614030c07141f090107565f5f26010b070f0a4805090b">[email protected]</a> address. Thanks in advance!

alexiscloud
Aug 17, 2023

I am preparing for GCP Associate engineer exam. If anyone has the entire questions set, please share them to <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d0a2bfbfa4bbb9a4bca5b3b9b6b5a290b7bdb1b9bcfeb3bfbd">[email protected]</a>

230198
Aug 23, 2023

Hi, I am preparing for the same if you got the entire questions please share them at <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ee808f808a878087808f8a9bdcddae89838f8782c08d8183">[email protected]</a>. Thank you so much.

Captain1212Option: C
Sep 1, 2023

C is the right answer

YourCloudGuruOption: C
Sep 22, 2023

The correct answer is C. Managed instance groups are groups of homogeneous Compute Engine instances that are managed as a single entity. They can be used to distribute traffic across multiple instances and to provide high availability. Autohealing is a feature of managed instance groups that automatically replaces instances that fail health checks. You can configure autohealing to recreate instances if they are unresponsive after a certain number of attempts. To configure autohealing for network load balancing, you need to create a managed instance group and set the Autohealing health check to healthy (HTTP). The health check will periodically probe the instances in the group to see if they are responding. If an instance fails the health check, autohealing will recreate it.

Evan7557Option: C
Oct 11, 2023

C is Correct Answer

BAofBKOption: C
Nov 5, 2023

The answer is C

thewalkerOption: C
Nov 21, 2023

C is correct

MiscoMoveOption: C
Dec 13, 2023

C is Correct!

Arnaud92Option: C
Jan 27, 2024

C is correct.

Ele24Option: C
Feb 19, 2024

C is Correct

subha.elumalaiOption: D
May 23, 2024

Correct Answer is D

Aravind1996Option: D
Jun 22, 2024

A,B,C are regarding http whereas question is about network Lb. So Option D is correct