Bird
0
0

A pod with no priorityClassName is scheduled. Which PriorityClass value will it get if a globalDefault PriorityClass exists with value 1000?

medium📝 Debug Q7 of 15
Kubernetes - Production Best Practices
A pod with no priorityClassName is scheduled. Which PriorityClass value will it get if a globalDefault PriorityClass exists with value 1000?
APod will fail to schedule
B1000
C0
DPod gets highest priority in cluster
Step-by-Step Solution
Solution:
  1. Step 1: Understand globalDefault PriorityClass role

    If a pod does not specify priorityClassName, it inherits the PriorityClass marked as globalDefault.
  2. Step 2: Apply globalDefault value to pod

    The pod will get the priority value of the globalDefault PriorityClass, which is 1000 in this case.
  3. Final Answer:

    The pod gets priority value 1000 -> Option B
  4. Quick Check:

    Pod inherits globalDefault PriorityClass value if none specified [OK]
Quick Trick: Pods without priorityClassName get globalDefault PriorityClass value [OK]
Common Mistakes:
  • Assuming pod priority is 0 without priorityClassName
  • Thinking pod fails without priorityClassName
  • Believing pod gets highest priority by default

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes