Bird
0
0

What is the output of this command if a PodDisruptionBudget is set to minAvailable: 2 and you try to evict a pod when only 2 pods are running?

medium📝 Predict Output Q5 of 15
Kubernetes - Advanced Deployment Patterns
What is the output of this command if a PodDisruptionBudget is set to minAvailable: 2 and you try to evict a pod when only 2 pods are running?
AEviction is denied to maintain minimum availability
BPod is evicted successfully
CAll pods are evicted
DPodDisruptionBudget is ignored
Step-by-Step Solution
Solution:
  1. Step 1: Understand PodDisruptionBudget minAvailable

    It prevents evictions that would reduce available pods below the minimum.
  2. Step 2: Apply to the scenario

    With minAvailable: 2 and only 2 pods running, eviction is denied to keep availability.
  3. Final Answer:

    Eviction is denied to maintain minimum availability -> Option A
  4. Quick Check:

    PodDisruptionBudget enforces minAvailable = Eviction denied [OK]
Quick Trick: PodDisruptionBudget blocks evictions below minAvailable [OK]
Common Mistakes:
  • Assuming pods can be evicted regardless of minAvailable
  • Thinking all pods get evicted at once
  • Believing PodDisruptionBudget is optional and ignored

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes