Containers are designed to be stateless and ephemeral, meaning their local filesystem is typically destroyed when the container stops or is recreated. In CompTIA Cloud+ (CV0-004) objectives related to containerization, storage management, and data persistence, workloads that must retain processed data beyond the container lifecycle should use persistent volumes. Persistent volumes provide external, durable storage that is mounted into the container at runtime. This allows data written by the container (logs, processed output files, reports, exports) to survive restarts, scaling events, or pod rescheduling in orchestrated environments such as Kubernetes.
Standard output (A) is commonly used for logging and streaming logs to monitoring systems, but it does not inherently retain structured files for long-term storage unless redirected elsewhere. Optical disk mounts (B) are irrelevant in cloud-native container environments. Ephemeral storage (C) is temporary and deleted when the container terminates, making it unsuitable for later review. Therefore, persistent volumes are the correct solution for durable file-based output from containers.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit