KCNA Kubernetes Fundamentals Practice Question
You have a Deployment that must run exactly one replica on each node in the cluster for logging purposes. Which Kubernetes resource should you use?
⚠ Common exam trap
A common misconception is that a Deployment with a high replica count can achieve per-node coverage, but Deployments do not enforce node-level placement and can leave some nodes empty or run multiple Pods on the same node.
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
✓
DaemonSet
A DaemonSet ensures that exactly one replica of a Pod runs on every node in the cluster, including when nodes are added or removed. This makes it the ideal resource for cluster-wide logging, monitoring, or other node-level agents that must be present on each node.
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 it's wrong here
A Job runs pods to completion, not continuously on every node, so it cannot satisfy the per-node logging requirement. It is tempting because Jobs also create pods directly, but they suit finite batch tasks such as migrations or report generation, where each pod terminates after finishing its work.
- ✗
Deployment
Why it's wrong here
A Deployment's replica count is cluster-wide, not per node, so three replicas spread across three nodes cannot guarantee one pod on each. It is tempting because Deployments manage replicated stateless pods, and they would be correct for a fixed total replica count with no per-node placement requirement.
- ✗
StatefulSet
Why it's wrong here
A StatefulSet provides stable identities and ordered rollout for stateful pods, but its replicas are still counted cluster-wide rather than one per node. It is tempting because StatefulSets give each pod a unique name, which suits databases needing persistent storage and stable network identities, not node-wide log collection.
- ✓
DaemonSet
Why this is correct
A DaemonSet guarantees one pod replica on every node, matching the stem's exactly-one-per-node logging requirement. Unlike a Deployment, whose replica count is cluster-wide and scheduler-placed, the DaemonSet controller bypasses scheduling decisions and tracks node membership, automatically adding pods to newly joined nodes.
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.