Kubernetes and Cloud Native Associate (KCNA) — Question 138
What is the main purpose of a DaemonSet?
Answer options
- A. A DaemonSet ensures that all (or certain) nodes run a copy of a Pod.
- B. A DaemonSet ensures that the kubelet is constantly up and running.
- C. A DaemonSet ensures that there are as many pods running as specified in the replicas field.
- D. A DaemonSet ensures that a process (agent) runs on every node.
Correct answer: A
Explanation
The correct answer, A, accurately describes the function of a DaemonSet, which is to guarantee that a specified Pod runs on all or specific nodes in a cluster. Option B is incorrect because it refers to the kubelet's operation, while C misrepresents the role of a DaemonSet as it pertains to replicas, and D, although somewhat related, does not capture the nuanced control over Pods that a DaemonSet provides.