A systems administrator is running a stateful application in a Kubernetes cluster. During rolling updates, the Deployment replaces old pods with new ones. Each time a pod is terminated and recreated, the application's data is lost. Which Kubernetes object is specifically designed to provide storage that persists independently of any pod's lifecycle, so the data remains available when new pods start?
The correct answer is PersistentVolume. A PersistentVolume (PV) is a cluster-level storage resource whose lifecycle is independent of the pods that use it. Data written to a PV remains intact after a pod is deleted and can be re-mounted by a replacement pod through a PersistentVolumeClaim, ensuring continuity for stateful applications.
A Deployment is a controller that manages the creation and rollout of pods but does not supply storage. A ConfigMap stores configuration key-value data, not runtime application data. A Service provides a stable network endpoint for accessing pods and likewise does not store application data.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a PersistentVolume in Kubernetes?
Open an interactive chat with Bash
How does a PersistentVolumeClaim (PVC) work with a PersistentVolume?
Open an interactive chat with Bash
What are the differences between PersistentVolumes and ephemeral pod storage?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Automation, Orchestration, and Scripting
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access