# A container writes files to an emptyDir volume with medium: Memory. What do those files count against?

Kubernetes, Easy (Beginner), Storage. https://k8wiz.com/uquiz/a-container-writes-files-to-an-emptydir-volume-with-medium-memory-what-do-those-files-count-against

- A. The memory limit of the container that wrote them
- B. The ephemeral-storage limit of the pod
- C. The node's imagefs eviction threshold
- D. Nothing, tmpfs memory is not accounted to pods

**Answer:** The memory limit of the container that wrote them

**Explanation:** With medium: Memory, Kubernetes mounts a tmpfs, and files written there count against the memory limit of the container that wrote them. Filling the volume can get that container OOM-killed even though its process heap is small. Setting a sizeLimit on the volume caps how much it can hold.
