Bird
0
0

You want two pods to share the same persistent storage volume with read-write access at the same time. Which access mode should you specify in your PersistentVolumeClaim?

hard📝 Best Practice Q15 of 15
Kubernetes - Persistent Storage
You want two pods to share the same persistent storage volume with read-write access at the same time. Which access mode should you specify in your PersistentVolumeClaim?
AReadWriteOnce
BReadWriteMany
CReadOnlyMany
DWriteOnce
Step-by-Step Solution
Solution:
  1. Step 1: Understand access modes for sharing

    ReadWriteMany allows multiple pods to mount the volume as read-write simultaneously.
  2. Step 2: Choose correct access mode for sharing

    Since two pods need read-write access at the same time, ReadWriteMany is required.
  3. Final Answer:

    ReadWriteMany -> Option B
  4. Quick Check:

    Multiple pods read-write = ReadWriteMany [OK]
Quick Trick: Use ReadWriteMany for shared read-write access [OK]
Common Mistakes:
  • Using ReadWriteOnce which allows only one pod
  • Confusing ReadOnlyMany with read-write access
  • Selecting non-existent WriteOnce mode

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes