PROFESSIONAL-CLOUD-DEVELOPER · Question #241
PROFESSIONAL-CLOUD-DEVELOPER Question #241: Real Exam Question with Answer & Explanation
The correct answer is A: Perform a rolling update with a PodDisruptionBudget of 80%.. https://cloud.google.com/blog/products/containers-kubernetes/ensuring-reliability-and-uptime-for- your-gke-cluster Setting PodDisruptionBudget ensures that your workloads have a sufficient number of replicas, even during maintenance. Using the PDB, you can define a number (or per
Question
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?
Options
- APerform a rolling update with a PodDisruptionBudget of 80%.
- BPerform a rolling update with a HorizontalPodAutoscaler scale-down policy value of 0.
- CConvert the Deployment to a StatefulSet, and perform a rolling update with a
- DConvert the Deployment to a StatefulSet, and perform a rolling update with a
Explanation
https://cloud.google.com/blog/products/containers-kubernetes/ensuring-reliability-and-uptime-for- your-gke-cluster Setting PodDisruptionBudget ensures that your workloads have a sufficient number of replicas, even during maintenance. Using the PDB, you can define a number (or percentage) of pods that can be terminated, even if terminating them brings the current replica count below the desired value. With PDB configured, Kubernetes will drain a node following the configured disruption schedule. New pods will be deployed on other available nodes. This approach ensures Kubernetes schedules workloads in an optimal way while controlling the disruption based on the PDB configuration.
Topics
Community Discussion
No community discussion yet for this question.