Study. uk . com
  1. Home
  2. All questions
  3. Question 898

CKA study material · question 898 of 1000

Which workload object suits a node-level logging agent, and why?

  1. A Deployment, so replicas can be scaled with load
  2. A DaemonSet, because one instance per node is needed
  3. A StatefulSet, because log order must be preserved
  4. A CronJob, because collection is periodic
Show the answer

Answer: B. A DaemonSet, because one instance per node is needed

A node-level agent must run on every node and reads the log files of all containers there, which is exactly the DaemonSet pattern; it needs no change to the applications.

Source: Logging Architecture (Kubernetes) — Cluster-level logging architectures › Using a node logging agent

Challenge yourself on this topic → Study as cards