Question
Which of the following container storage types loses data after a restart?
- A. Object
- B. Persistent volume
- C. Ephemeral Correct
- D. Block
Explanation
Ephemeral storage, such as a container's writable layer or a Kubernetes emptyDir volume, exists only for the life of the container or pod, so its data is lost when the container is restarted or recreated. Persistent volumes are designed to outlive pods, and object and block storage are durable back-end storage that keeps data independently of the container's lifecycle.