Bird
0
0

Which field in a Pod Disruption Budget YAML specifies the pods to which the budget applies?

easy📝 Conceptual Q2 of 15
Kubernetes - Production Best Practices
Which field in a Pod Disruption Budget YAML specifies the pods to which the budget applies?
Ametadata.labels
Bspec.minAvailable
Cspec.selector
Dspec.maxUnavailable
Step-by-Step Solution
Solution:
  1. Step 1: Identify selector role in PDB

    The selector field in spec defines which pods the PDB applies to by matching labels.
  2. Step 2: Differentiate from other fields

    minAvailable and maxUnavailable define availability constraints, not pod selection.
  3. Final Answer:

    spec.selector -> Option C
  4. Quick Check:

    spec.selector = B [OK]
Quick Trick: Use spec.selector to target pods in PDB [OK]
Common Mistakes:
  • Using metadata.labels instead of spec.selector
  • Confusing availability fields with selector
  • Omitting selector causing PDB to apply nowhere

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes