EX280 Storage And Persistent Volumes Practice Question
A developer deploys an application that mounts a PVC in read-only mode inside the pod specification. How is this configured in the Pod's volumeMounts?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Set readOnly: true in the container's volumeMounts entry.
Setting 'readOnly: true' in the pod's volumeMounts array mounts the PVC in read-only mode for that container.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Set accessModes to ReadOnlyMany on the PVC object.
Why it's wrong here
Access modes are set on the PVC/PV, but read-only mounting per container is controlled in the pod's volumeMounts spec.
- ✓
Set readOnly: true in the container's volumeMounts entry.
Why this is correct
volumeMounts supports the readOnly boolean flag per container mount.
- ✗
Set volumeMode: ReadOnly in the PVC spec.
Why it's wrong here
volumeMode only accepts Block or Filesystem.
- ✗
Annotate the PVC with 'volume.beta.kubernetes.io/readonly'.
Why it's wrong here
Annotations do not control container mount permissions.
About these practice questions
One of 509 original EX280 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official Red Hat exam blueprint
This EX280 practice question is part of Courseiva's free Red Hat certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the EX280 exam.