Storage Management
medium

Pregunta de Storage Management #019e3a4f

Enunciado de la Pregunta
Storage Management
#ephemeral storage
#kubernetes
#container storage
#temporary storage
Medio

What is ephemeral storage?

A

Storage space that need not persist across restarts.

Correcto
B

Storage that may grow dynamically.

C

Storage used by multiple consumers (e.g. multiple Pods).

D

Storage that is always provisioned locally

Explicación Oficial / Explicaciones de la Comunidad

Ephemeral storage refers to temporary storage that is tied to the lifecycle of a container or pod. It does not persist across restarts, meaning any data stored in ephemeral storage is lost when the container or pod is terminated or restarted. This is in contrast to persistent storage, which retains data across restarts.

How it Works
In container orchestration platforms like Kubernetes, ephemeral storage is used for scratch space, caching, or logs that do not need to survive container restarts. It is typically backed by the node's local filesystem (e.g., emptyDir volumes) or by a temporary filesystem (tmpfs). The storage is provisioned on the node where the pod runs and is automatically deleted when the pod is removed.

Why the Correct Answer is Right
The correct answer states that ephemeral storage is "Storage space that need not persist across restarts." This accurately captures the core characteristic: data is temporary and does not survive container or pod restarts. This definition aligns with how ephemeral storage is used in cloud-native environments.

Why the Incorrect Answers are Wrong

  • "Storage that may grow dynamically" describes dynamic provisioning or elastic storage, not ephemeral storage. Ephemeral storage can be fixed-size or dynamically allocated, but its defining feature is lack of persistence, not growth.
  • "Storage used by multiple consumers (e.g. multiple Pods)" describes shared storage, which is typically persistent (e.g., NFS, PersistentVolumeClaims with ReadWriteMany access mode). Ephemeral storage is usually local to a single pod and not shared.
  • "Storage that is always provisioned locally" is not always true. While ephemeral storage is often local (e.g., emptyDir on node disk), it can also be backed by network storage in some implementations. The key attribute is non-persistence, not locality.