KCNA Container Orchestration Practice Question
Which of the following is a valid use case for a DaemonSet?
⚠ Common exam trap
Candidates often confuse DaemonSets with Deployments or StatefulSets, assuming any long-running workload fits, but the key differentiator is the 'one pod per node' requirement, not replication count or statefulness.
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
✓
Running a logging agent on every node
A DaemonSet ensures that a copy of a pod runs on all (or a subset of) nodes in the cluster. This is ideal for infrastructure pods like logging agents (e.g., Fluentd), monitoring agents (e.g., Prometheus Node Exporter), or kube-proxy, which must be present on every node to collect logs or enforce network rules. Option D directly matches this use case.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Running a batch job that must complete once
Why it's wrong here
A batch job runs to completion and then terminates, whereas a DaemonSet keeps one pod running on every eligible node continuously. It is tempting because both are workload controllers, but a Job or CronJob is correct when the requirement is finite, run-once execution rather than per-node presence.
- ✗
Running a stateless web application with multiple replicas
Why it's wrong here
A stateless web application needs a fixed replica count scheduled by the scheduler, not one pod guaranteed on every node. It is tempting because DaemonSets also run pods, but a Deployment is correct when the requirement is scalable replicas behind a Service rather than node-level coverage.
- ✗
Running a stateful application with persistent storage
Why it's wrong here
Stateful applications with persistent storage need stable identities and per-pod volumes, which a StatefulSet provides; a DaemonSet ties pods to nodes rather than to storage. It is tempting because DaemonSets also mount volumes, but StatefulSet is correct when data persistence and stable network identity are required.
- ✓
Running a logging agent on every node
Why this is correct
A DaemonSet guarantees one pod replica per node, automatically scheduling onto new nodes as they join. This satisfies the stem's requirement of running a logging agent on every node, since node-level log collection demands continuous coverage across the whole cluster rather than a fixed replica count.
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.