Bird
0
0

You have a PersistentVolumeClaim with accessModes set to ReadWriteOnce. You try to mount it as read-write on two pods running on different nodes. What is the likely outcome?

medium📝 Troubleshoot Q14 of 15
Kubernetes - Persistent Storage
You have a PersistentVolumeClaim with accessModes set to ReadWriteOnce. You try to mount it as read-write on two pods running on different nodes. What is the likely outcome?
ABoth pods mount the volume read-write successfully.
BOnly one pod mounts the volume read-write; the other fails to mount.
CBoth pods mount the volume read-only.
DBoth pods fail to mount the volume.
Step-by-Step Solution
Solution:
  1. Step 1: Recall ReadWriteOnce limitation

    ReadWriteOnce allows only one node to mount the volume as read-write at a time.
  2. Step 2: Analyze mounting on two nodes

    Since pods are on different nodes, only one pod can mount read-write; the other pod's mount will fail.
  3. Final Answer:

    Only one pod mounts the volume read-write; the other fails to mount. -> Option B
  4. Quick Check:

    ReadWriteOnce = single node writer [OK]
Quick Trick: ReadWriteOnce limits to one node writer [OK]
Common Mistakes:
  • Assuming both pods can mount read-write
  • Thinking volume auto-switches to read-only
  • Believing both pods fail to mount

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes