Courseiva
Workloads and Scheduling →easyMultiple Choice

CKA Workloads and Scheduling Practice Question

What is the purpose of a PriorityClass in Kubernetes scheduling?

⚠ Common exam trap

Many exam-takers confuse PriorityClass with QoS classes (Option A) or think it controls node selection (Option B), when in fact PriorityClass strictly governs scheduling priority and preemption behavior.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

To assign a priority value that determines the order pods are considered by the scheduler

PriorityClass in Kubernetes assigns an integer priority value to pods, which the scheduler uses to determine the order in which pods are considered for scheduling. Higher-priority pods are scheduled before lower-priority ones, and during resource contention, lower-priority pods may be preempted to make room for higher-priority pods. This ensures critical workloads get precedence over less important ones.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    To set the quality of service class for a pod

    Why it's wrong here

    Quality of Service (QoS) classes—such as Guaranteed, Burstable, and BestEffort—are automatically assigned by Kubernetes based on the configured CPU and memory requests and limits of the pod's containers. They are not configured via a PriorityClass object, which instead dictates scheduling order and preemption behavior.

  • ✗

    To define which nodes are eligible for pod scheduling

    Why it's wrong here

    Restricting pod placement to specific nodes is handled by scheduling constraints like nodeSelector, nodeAffinity, taints, and tolerations. A PriorityClass does not influence node eligibility directly; it only determines the scheduling queue order and preemption eligibility once a pod is assigned to be scheduled.

  • ✓

    To assign a priority value that determines the order pods are considered by the scheduler

    Why this is correct

    A PriorityClass defines a 32-bit integer value that the kube-scheduler uses to order the active scheduling queue. Pods with higher priority values are processed before lower-priority ones and can trigger the preemption of running, lower-priority pods if cluster resources are fully utilized.

  • ✗

    To control the order in which containers are started inside a pod

    Why it's wrong here

    Container execution order within a single pod is managed sequentially using init containers, or concurrently with standard app containers. PriorityClass operates at the pod level and has no mechanism to orchestrate or influence the internal lifecycle, startup sequence, or runtime dependencies of individual containers.

About these practice questions

One of 726 original CKA practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This CKA practice question is part of Courseiva's free CNCF certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CKA exam.