KCNA Container Orchestration Practice Question
You need to run a batch job that processes a queue and then terminates. Which Kubernetes resource should you use?
⚠ Common exam trap
CNCF often tests the misconception that a Deployment can be used for any workload, but the trap here is that a Deployment's restart policy (Always) makes it unsuitable for terminating batch jobs, whereas a Job's restart policy (OnFailure or Never) is specifically designed for finite tasks.
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
✓
Job
A Job is the correct Kubernetes resource for running a batch process that executes a finite task (e.g., processing a queue) and then terminates. Unlike controllers that maintain a desired state indefinitely, a Job creates one or more Pods and ensures they run to successful completion, after which the Job itself completes and no further Pods are created.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Deployment
Why it's wrong here
A Deployment maintains a declared number of long-running replicas and restarts containers indefinitely, so it never reaches a terminal completed state. It is tempting because it is the default workload controller for stateless applications, and would be correct for a continuously running service rather than a finite batch task.
- ✗
DaemonSet
Why it's wrong here
A DaemonSet schedules one pod on every eligible node to provide node-level services, and those pods run continuously rather than terminating after processing a queue. It is tempting because it targets specific nodes, and would be correct for log collectors, monitoring agents, or CNI components on each node.
- ✗
StatefulSet
Why it's wrong here
A StatefulSet guarantees stable network identities and persistent storage per replica, but it also keeps pods running indefinitely rather than completing. It is tempting because it manages ordered, stateful workloads, and would be correct for databases or clustered applications needing stable identity and persistent volumes.
- ✓
Job
Why this is correct
A Job creates pods that run to completion and then stops, tracking successful termination. Unlike a Deployment, which maintains a desired replica count indefinitely, a Job suits the queue-processing batch workload that must finish and exit.
Go deeper
Related to this question
About these practice questions
One of 930 original KCNA 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 →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This KCNA 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 KCNA exam.