KCNA Container Orchestration Practice Question
A team wants to deploy a batch job that runs once to process a large dataset. The job should run to completion and then terminate. Which Kubernetes resource should be used?
⚠ Common exam trap
CNCF often tests the distinction between long-running workloads (Deployments, DaemonSets) and finite tasks (Jobs), so the trap here is confusing a one-time batch job with a CronJob due to the word 'batch' or assuming a Deployment can handle termination.
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 resource is designed for batch processing tasks that run to completion and then terminate. It creates one or more Pods and ensures they successfully finish their work, making it the correct choice for a one-time data processing job.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
DaemonSet
Why it's wrong here
A DaemonSet schedules one pod per node and keeps it running for the node's lifetime, so it never terminates after processing the dataset. It is tempting because DaemonSets correctly run node-level agents such as log shippers or CNI plugins, not finite batch workloads needing completion.
- ✗
CronJob
Why it's wrong here
A CronJob creates Jobs on a recurring schedule, so it would re-run the dataset processing repeatedly rather than once. It is tempting because CronJob correctly handles periodic batch work such as nightly reports, but a single run-to-completion execution needs a plain Job.
- ✗
Deployment
Why it's wrong here
A Deployment maintains a desired count of long-running pods and restarts them indefinitely, so the workload never reaches completion. It is tempting because Deployments suit stateless services such as web front ends, but a run-to-completion batch workload requires the Job controller's completion semantics.
- ✓
Job
Why this is correct
A Job creates pods that run until successful completion, then stops — exactly matching the run-once-then-terminate constraint. A Deployment would restart pods indefinitely to maintain a desired replica count, which is wrong for batch processing.
Go deeper
Related to this question
About these practice questions
Courseiva writes every KCNA question from scratch — 930 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. 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.