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

CKA study material · question 819 of 1000

A Pod uses an emptyDir with medium set to Memory and is OOM-killed after writing a large file to it. Why?

  1. tmpfs writes are charged against the writing container's memory limit
  2. Memory-backed volumes are capped at 64Mi
  3. The kubelet counts tmpfs against ephemeral-storage, triggering eviction
  4. The file was written to the node's swap, which is disabled
Show the answer

Answer: A. tmpfs writes are charged against the writing container's memory limit

A Memory-medium emptyDir is a tmpfs, and files written there count against the container's memory limit — fast, but a direct route to an OOM kill.

Source: Volumes (Kubernetes) — Types of volumes › emptyDir

Challenge yourself on this topic → Study as cards