Bird
0
0

Which field in a pod's YAML manifest specifies the priority class to be used for scheduling?

easy📝 Syntax Q3 of 15
Kubernetes - Scheduling
Which field in a pod's YAML manifest specifies the priority class to be used for scheduling?
Ametadata.labels.priorityClassName
Bmetadata.priorityClass
Cspec.priority
Dspec.priorityClassName
Step-by-Step Solution
Solution:
  1. Step 1: Identify the correct YAML field

    The field to assign a priority class to a pod is under the pod spec, named priorityClassName.
  2. Step 2: Verify other options

    metadata.priorityClass and metadata.labels.priorityClassName are invalid fields for priority assignment. spec.priority is not used to assign priority classes but is a numeric value set internally.
  3. Final Answer:

    spec.priorityClassName -> Option D
  4. Quick Check:

    Correct YAML field for priority class is spec.priorityClassName [OK]
Quick Trick: Priority class is set under spec.priorityClassName [OK]
Common Mistakes:
  • Using metadata.priorityClass instead of spec.priorityClassName
  • Setting priority as a label instead of a spec field
  • Confusing spec.priority with priorityClassName

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes