Google Cloud Professional Cloud Developer — Question 159
You plan to deploy a new application revision with a Deployment resource to Google Kubernetes Engine (GKE) in production. The container might not work correctly. You want to minimize risk in case there are issues after deploying the revision. You want to follow Google-recommended best practices. What should you do?
Answer options
- A. Perform a rolling update with a PodDisruptionBudget of 80%.
- B. Perform a rolling update with a HorizontalPodAutoscaler scale-down policy value of 0.
- C. Convert the Deployment to a StatefulSet, and perform a rolling update with a PodDisruptionBudget of 80%.
- D. Convert the Deployment to a StatefulSet, and perform a rolling update with a HorizontalPodAutoscaler scale-down policy value of 0.
Correct answer: A
Explanation
The correct choice, A, involves performing a rolling update with a PodDisruptionBudget, which helps ensure that the application remains available during the update process. Options B, C, and D do not follow the best practice of using a PodDisruptionBudget, which is crucial for managing disruptions effectively during the deployment of new revisions.