Bird
0
0

What will happen if a PersistentVolume is defined with accessModes: ["ReadWriteMany"] but the underlying storage does not support it?

medium📝 Predict Output Q5 of 15
Kubernetes - Persistent Storage
What will happen if a PersistentVolume is defined with accessModes: ["ReadWriteMany"] but the underlying storage does not support it?
AThe PV will be deleted automatically
BThe PV will be created but pods cannot mount it with ReadWriteMany
CThe PV will automatically downgrade to ReadWriteOnce
DThe PV creation will fail immediately
Step-by-Step Solution
Solution:
  1. Step 1: Understand PV creation behavior

    Kubernetes allows PV creation even if storage backend does not support requested access mode.
  2. Step 2: Effect on pod mounting

    Pods trying to mount with unsupported access mode will fail; PV itself exists but is unusable as requested.
  3. Final Answer:

    The PV will be created but pods cannot mount it with ReadWriteMany -> Option B
  4. Quick Check:

    Unsupported access mode = PV created but unusable [OK]
Quick Trick: PV creation doesn't validate backend access mode support [OK]
Common Mistakes:
  • Thinking PV creation fails immediately
  • Assuming automatic downgrade of access mode
  • Believing PV deletes itself on mismatch

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes