Google Associate Cloud Engineer

Google Associate Cloud Engineer

Get started today

Ultimate access to all questions.


Your company operates a stock trading app with over a million users. A major update to your web application, deployed as a managed instance group, is ready. The app is currently handling live traffic. You need to deploy the new version gradually, ensuring no downtime and no decrease in available capacity during the deployment. What is the best approach?




Explanation:

Option B is correct because setting maxSurge to 1 allows for one additional instance to be created during the update process, providing extra capacity to handle the deployment without affecting live traffic. Setting maxUnavailable to 0 ensures that the available capacity does not decrease during the deployment, minimizing downtime. Option A is incorrect because setting maxSurge to 0 prevents any additional instances from being created, risking downtime. Options C and D are incorrect as they involve creating new managed instance groups or deleting instances, which can lead to downtime and affect live traffic.