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

CKA study material · question 892 of 1000

A Pod has written 40 MiB of logs on a node rotating at 10 MiB. How much can kubectl logs return?

  1. All 40 MiB, reassembled from the rotated files
  2. At most 10 MiB, from the newest file only
  3. The last 2048 bytes
  4. Nothing, once rotation has occurred
Show the answer

Answer: B. At most 10 MiB, from the newest file only

kubectl logs reads the newest file only, so a Pod that has written well past the rotation size returns at most one file; earlier output must come from a log aggregator or from the node.

Source: Logging Architecture (Kubernetes) — Pod and container logs › Log rotation

Challenge yourself on this topic → Study as cards