KCNA Storage & Persistent Volumes — Questions and Answers
Question 1: What is the purpose of Persistent Volumes in Kubernetes?
- To allocate resources for the cluster.
- To manage network policies.
- To provide storage that persists beyond pod lifecycles (Correct answer)
- To optimize storage for applications.
Correct answer: To provide storage that persists beyond pod lifecycles
Persistent Volumes (PVs) in Kubernetes offer a way to provision storage resources independently of Pods. This ensures that data remains available even if the Pods that were using it are deleted or rescheduled, providing durable storage for stateful applications.
Question 2: Which component is used to manage persistent storage in Kubernetes?
- Kube-proxy.
- Persistent Volume Claim (Correct answer)
- Kubelet.
- Scheduler.
Correct answer: Persistent Volume Claim
A Persistent Volume Claim (PVC) is a request for storage by a user. It abstracts the details of the underlying storage, allowing users to consume abstract storage resources (Persistent Volumes) without needing to know the specifics of the storage provider.
What is the purpose of Persistent Volumes in Kubernetes?