KCNA Container Orchestration Practice Question
Which Kubernetes resource should be used to run a one-time task that performs a computation and then exits?
⚠ Common exam trap
Many candidates confuse a Job with a Deployment because both can run containers, but a Deployment is designed for long-running services, not for tasks that should terminate after completion.
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 designed specifically for finite, one-time tasks that run to completion and then exit. Unlike controllers that maintain a desired number of continuously running Pods, a Job creates one or more Pods and tracks their successful termination, making it the correct choice for a computation that should run once and stop.
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 to provide node-level services, so it does not model a single finite computation that exits. It is tempting because DaemonSets run pods automatically, and it would be correct for per-node agents such as log collectors or monitoring daemons.
- ✗
StatefulSet
Why it's wrong here
A StatefulSet provides stable identities and persistent storage for long-running stateful pods, not a run-to-completion workload. It is tempting because it manages pods with ordered identity, and it would be correct for databases or clustered applications requiring stable network names and persistent volumes.
- ✓
Job
Why this is correct
A Job creates one or more pods that run to completion, then stops restarting them once the task succeeds. This directly satisfies the stem's requirement for a one-time computation that exits, unlike a Deployment, which maintains a continuous desired replica count for long-running services.
- ✗
Deployment
Why it's wrong here
A Deployment manages long-running replicated pods and restarts containers that exit, so a task that terminates would be relaunched rather than completed once. It is tempting because Deployments are the default workload for running containers, and it would be correct for a continuously available stateless service.
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 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.