Question 34
Domain 2: Workloads & SchedulingWhich PodDisruptionBudget configuration ensures a 10-replica application can lose no more than 2 pods simultaneously during voluntary disruptions?
Correct answer: A
Explanation
A PodDisruptionBudget limits voluntary disruptions by requiring a minimum number of pods to stay available. For a 10-replica app, "minAvailable: 8" means at least 8 pods must remain, so no more than 2 can be disrupted at once. The selector must match the application pods for the budget to apply.
Why each option is right or wrong
A. Set minAvailable: 8 in the PodDisruptionBudget selector matching the application pods
Under the Kubernetes PodDisruptionBudget API, `minAvailable` specifies the minimum number of pods that must remain available during voluntary disruptions, as defined in the `policy/v1` PDB object. For a workload with 10 replicas, setting `minAvailable: 8` mathematically permits at most 2 pods to be unavailable at any one time, and the PDB only applies if its selector matches those application pods.
B. Set maxUnavailable: 8 in the PodDisruptionBudget selector matching the application pods
C. Set minAvailable: 2 in the PodDisruptionBudget selector matching the application pods
D. Set replicas: 8 in the PodDisruptionBudget spec to limit disruptions