ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 223 - Professional Cloud Developer discussion

Report
Export

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?

A.
Perform a rolling update with a PodDisruptionBudget of 80%.
Answers
A.
Perform a rolling update with a PodDisruptionBudget of 80%.
B.
Perform a rolling update with a HorizontalPodAutoscaler scale-down policy value of 0.
Answers
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%.
Answers
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.
Answers
D.
Convert the Deployment to a StatefulSet, and perform a rolling update with a HorizontalPodAutoscaler scale-down policy value of 0.
Suggested answer: 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.

https://blog.knoldus.com/how-to-avoid-outages-in-your-kubernetes-cluster-using-pdb/

asked 18/09/2024
Luis Elola
28 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first