A DevOps team needs to provide persistent storage to a set of pods that all require read-write access to the same data simultaneously. Which volume type should they use?
Trap 1: hostPath
hostPath is node-specific and not suitable for multi-pod access across nodes.
Trap 2: emptyDir
emptyDir is ephemeral and tied to a pod's lifecycle; it cannot be shared across pods on different nodes.
Trap 3: PersistentVolumeClaim with ReadWriteOnce
ReadWriteOnly allows only one node to mount the volume as read-write, not multiple pods.
- A
PersistentVolumeClaim with ReadWriteMany
ReadWriteMany allows multiple pods to read and write simultaneously, which is required here.
- B
hostPath
Why wrong: hostPath is node-specific and not suitable for multi-pod access across nodes.
- C
emptyDir
Why wrong: emptyDir is ephemeral and tied to a pod's lifecycle; it cannot be shared across pods on different nodes.
- D
PersistentVolumeClaim with ReadWriteOnce
Why wrong: ReadWriteOnly allows only one node to mount the volume as read-write, not multiple pods.