Bird
0
0

What does podAffinity in Kubernetes help you achieve?

easy📝 Conceptual Q1 of 15
Kubernetes - Scheduling
What does podAffinity in Kubernetes help you achieve?
ASchedule pods to be placed close to other pods with matching labels
BPrevent pods from being scheduled on nodes with certain labels
CAutomatically scale pods based on CPU usage
DEncrypt pod network traffic between nodes
Step-by-Step Solution
Solution:
  1. Step 1: Understand podAffinity purpose

    Pod affinity is used to schedule pods close to other pods with specific labels to improve communication or locality.
  2. Step 2: Compare options

    Only Schedule pods to be placed close to other pods with matching labels describes scheduling pods near others with matching labels, which is podAffinity's goal.
  3. Final Answer:

    Schedule pods to be placed close to other pods with matching labels -> Option A
  4. Quick Check:

    podAffinity = Schedule pods near matching pods [OK]
Quick Trick: podAffinity schedules pods near others with matching labels [OK]
Common Mistakes:
  • Confusing podAffinity with anti-affinity
  • Thinking podAffinity controls scaling
  • Assuming podAffinity encrypts traffic

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes