KCNA Kubernetes Fundamentals Practice Question
A user wants to run a one-time batch task that processes a dataset and then exits. The task should not be restarted if it completes successfully. Which Kubernetes resource is most appropriate?
⚠ Common exam trap
The trap here is assuming that any workload controller can run a batch task, but only a Job provides run-to-completion semantics without restarting on success.
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 Kubernetes resource designed for batch workloads that run to completion. It tracks successful Pod completions and does not restart Pods that exit with success. Deployments, StatefulSets, and DaemonSets are all intended for long-running services and do not provide the same completion guarantees.
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 one or more Pods and ensures that a specified number of them successfully terminate. It is intended for batch tasks that run to completion. By default, a Job does not restart the Pod if it exits successfully, making it the correct choice for a one-time dataset processing task.
- ✗
Deployment
Why it's wrong here
A Deployment is designed for long-running, stateless applications that should always have a specified number of replicas running. It restarts containers if they exit, which is undesirable for a one-time batch task. Using a Deployment would cause the task to run repeatedly rather than completing once.
- ✗
StatefulSet
Why it's wrong here
A StatefulSet is used for stateful applications that require stable network identities and persistent storage. It maintains a fixed set of Pods that are not expected to terminate. It is not suitable for a one-time batch task because it does not provide completion semantics.
- ✗
DaemonSet
Why it's wrong here
A DaemonSet ensures a Pod runs on every node, typically for cluster-wide services like logging or monitoring. It is not designed for batch processing and does not track completion. Using a DaemonSet would run the task on all nodes and keep it running, which is incorrect for a one-time job.
Go deeper
Related to this question
About these practice questions
This KCNA question is part of Courseiva's 930-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official CNCF exam blueprint
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.