exam questions

Exam Associate Cloud Engineer All Questions

View all questions & answers for the Associate Cloud Engineer exam

Exam Associate Cloud Engineer topic 1 question 57 discussion

Actual exam question from Google's Associate Cloud Engineer
Question #: 57
Topic #: 1
[All Associate Cloud Engineer Questions]

You have a web application deployed as a managed instance group. You have a new version of the application to gradually deploy. Your web application is currently receiving live web traffic. You want to ensure that the available capacity does not decrease during the deployment. What should you do?

  • A. Perform a rolling-action start-update with maxSurge set to 0 and maxUnavailable set to 1.
  • B. Perform a rolling-action start-update with maxSurge set to 1 and maxUnavailable set to 0.
  • C. Create a new managed instance group with an updated instance template. Add the group to the backend service for the load balancer. When all instances in the new managed instance group are healthy, delete the old managed instance group.
  • D. Create a new instance template with the new application version. Update the existing managed instance group with the new instance template. Delete the instances in the managed instance group to allow the managed instance group to recreate the instance using the new instance template.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
CarlS
Highly Voted 4 years, 4 months ago
Correct option is B. We need to ensure the global capacity remains intact, for that reason we need to establish maxUnavailable to 0. On the other hand, we need to ensure new instances can be created. We do that by establishing the maxSurge to 1. Option C is more expensive and more difficult to set up and option D won't meet requirements since it won't keep global capacity intact.
upvoted 98 times
yeanlingmedal71
1 year, 8 months ago
maxSurge- configure how many new instances the MIG can create above its targetSize during an automated update. For example, if you set maxSurge to 5, the MIG uses the new instance template to create up to 5 new instances above your target size. Setting a higher maxSurge value speeds up your update, at the cost of additional instances
upvoted 15 times
space_cadet
1 year, 6 months ago
Thanks for this. And setting it to one makes sense, seeing that we want a gradual update
upvoted 2 times
...
...
...
JavierCorrea
Highly Voted 3 years, 12 months ago
I take my own previous comment back. It's definitely B.
upvoted 21 times
...
PrivateHulk
Most Recent 6 months, 4 weeks ago
I vote for A. A rolling update with maxSurge set to 0 ensures that no additional instances beyond the desired size are created during the update. By setting maxUnavailable to 1, only one instance is taken down at a time, minimizing the impact on the available capacity during the deployment. This approach allows the rolling deployment to proceed in a controlled manner, with each new version gradually replacing instances without decreasing the overall capacity and with zero downtime. Not Option B because setting maxSurge to 1 and maxUnavailable to 0, could lead to temporarily increased capacity during the update, and it might result in higher resource usage than necessary. This option may not guarantee zero downtime or minimize the impact on the available capacity during the deployment.
upvoted 1 times
...
thewalker
9 months, 2 weeks ago
Selected Answer: B
B is the clean way: https://medium.com/@bubu.tripathy/understanding-maxsurge-and-maxunavailable-4966dfafc8ba
upvoted 2 times
...
Captain1212
1 year ago
Selected Answer: B
B is the correct answer
upvoted 1 times
...
Buruguduystunstugudunstuy
1 year, 6 months ago
Selected Answer: B
Answer B is the correct answer because it allows for a safe and controlled rolling deployment with zero downtime and without reducing the available capacity during the deployment. The `maxSurge` parameter controls the maximum number of new instances that can be created above the desired number of instances during the update process. By setting `maxSurge` to 1, the new version of the application can be gradually rolled out while maintaining the same number of available instances. The `maxUnavailable` parameter controls the maximum number of instances that can be unavailable during the update process. By setting `maxUnavailable` to 0, at least one instance of the previous version will be available at all times, ensuring that there is no decrease in available capacity during the deployment. By performing a rolling update with `maxSurge` set to 1 and `maxUnavailable` set to 0, the new version of the application can be gradually deployed with zero downtime and no decrease in available capacity.
upvoted 11 times
Buruguduystunstugudunstuy
1 year, 6 months ago
Answer A is incorrect because setting maxSurge to 0 means that no additional instances are created beyond the existing number of instances in the group, which can potentially lead to a decrease in capacity. Also, setting maxUnavailable to 1 means that one instance can be unavailable at any given time, which can potentially lead to some users experiencing downtime. Answer C is incorrect because creating a new managed instance group would require adding the new group to the backend service, which can take time and potentially cause downtime. Also, deleting the old managed instance group before ensuring that the new group is healthy can cause a decrease in capacity. Answer D is incorrect because deleting instances in the managed instance group can cause a temporary decrease in capacity, and it may take some time for new instances to be created with the new instance template. Also, the new instances may take time to warm up, which can cause a delay in serving traffic.
upvoted 3 times
...
...
vlodia
1 year, 8 months ago
If you do not want any unavailable machines during an update, set the maxUnavailable value to 0 and the maxSurge value to greater than 0. With these settings, Compute Engine removes each old machine only after its replacement new machine is created and running. https://cloud.google.com/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#max_unavailable
upvoted 3 times
...
rajivdutt
1 year, 8 months ago
If you do not want any unavailable machines during an update, set the maxUnavailable value to 0 and the maxSurge value to greater than 0. With these settings, Compute Engine removes each old machine only after its replacement new machine is created and running.
upvoted 1 times
...
Mission94
1 year, 8 months ago
HI all, if you guys have all the questions and answers please mail it to untranslatable[dot]character@gmail[dot]com Thanks in advance.
upvoted 2 times
...
Rubankumar
1 year, 8 months ago
Selected Answer: B
B is Correct
upvoted 1 times
...
Shubamakabra
1 year, 9 months ago
Selected Answer: B
this this this this this
upvoted 1 times
...
Zoze
1 year, 9 months ago
Selected Answer: B
I have seen this question in others websites, and in all of them, the answer is B B B!!.
upvoted 2 times
...
leogor
1 year, 10 months ago
Selected Answer: B
B. maxUnavailable set to 0 is the key
upvoted 1 times
...
gcpBeginner
1 year, 11 months ago
it should be B. if we change template it cause outage and question said no outage allowed.
upvoted 1 times
...
RanjithK
2 years, 2 months ago
Answer is B
upvoted 1 times
...
AzureDP900
2 years, 2 months ago
Correct option is B. Perform a rolling-action start-update with maxSurge set to 1 and maxUnavailable set to 0. This is also present on Tutorial Dojo practice questions.
upvoted 1 times
Backlander
1 year, 2 months ago
Sir, this is a GCP certification platform..
upvoted 1 times
...
...
LaxmanTiwari
2 years, 3 months ago
WAS IN MY EXAM GO WITY THE MAJORITY
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago