KCNA Kubernetes Fundamentals Practice Question
A user wants to run a one-time batch job that runs to completion. Which Kubernetes resource should they use?
⚠ Common exam trap
A common pitfall is assuming that a Deployment can handle batch jobs because it manages Pods, but Deployments enforce a desired replica count and restart policies that keep Pods running indefinitely, making them unsuitable for tasks that must terminate successfully after completing their work.
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 Kubernetes Job is the correct resource for a one-time batch job that runs to completion. Unlike controllers designed for long-running processes, a Job creates one or more Pods and ensures they successfully terminate, making it ideal for finite tasks like data processing or backups.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Job
Why this is correct
A Job creates pods that run until successful completion, tracking completions and retries — exactly matching the one-time batch requirement. Unlike Deployments, which maintain a desired replica count indefinitely, or CronJobs, which schedule recurring runs, a Job's controller terminates once the specified completions succeed, satisfying the run-to-completion constraint.
- ✗
StatefulSet
Why it's wrong here
A StatefulSet manages long-running pods requiring stable network identities and persistent storage, not run-to-completion workloads. It is tempting because it does create and manage pods, and suits stateful databases; a Job is the resource that runs pods until successful completion.
- ✗
DaemonSet
Why it's wrong here
A DaemonSet ensures one pod runs on every eligible node for continuous node-level services, not a single run-to-completion task. It is tempting because it manages pods automatically, and is correct for log shippers or monitoring agents; a Job runs pods until completion.
- ✗
Deployment
Why it's wrong here
A Deployment maintains a desired number of continuously running replicas, restarting pods rather than letting them finish. It is tempting because it is the default way to run containers, and suits stateless long-running services; a Job is designed for run-to-completion batch work.
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.