Topic 1 Question 57
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?
Perform a rolling-action start-update with maxSurge set to 0 and maxUnavailable set to 1.
Perform a rolling-action start-update with maxSurge set to 1 and maxUnavailable set to 0.
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.
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.
ユーザの投票
コメント(17)
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.
👍 88CarlS2020/04/10I take my own previous comment back. It's definitely B.
👍 19JavierCorrea2020/09/09- 正解だと思う選択肢: 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
maxSurgeparameter controls the maximum number of new instances that can be created above the desired number of instances during the update process. By settingmaxSurgeto 1, the new version of the application can be gradually rolled out while maintaining the same number of available instances.The
maxUnavailableparameter controls the maximum number of instances that can be unavailable during the update process. By settingmaxUnavailableto 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
maxSurgeset to 1 andmaxUnavailableset to 0, the new version of the application can be gradually deployed with zero downtime and no decrease in available capacity.👍 7Buruguduystunstugudunstuy2023/02/19
シャッフルモード