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?
Setting `readOnly: true` on the container's `volumeMounts` entry enforces read-only access at the mount point, satisfying the stem's requirement that the PVC be mounted read-only inside the pod. This is the per-container mount flag, distinct from the PersistentVolumeClaim's own access modes, which govern node-level attachment rather than filesystem writability.
Why this answer
Read-only mounting of a PVC inside a pod is set per-container via `readOnly: true` in the volumeMounts entry. This tells the kubelet to mount the volume read-only for that container, regardless of the PVC's access modes.
Exam trap
EX280 often tests whether candidates confuse PVC accessModes (volume capability) with the per-container volumeMounts.readOnly flag (mount behavior), leading them to pick ReadOnlyMany incorrectly.
How to eliminate wrong answers
Option A is wrong because accessModes (ReadOnlyMany) describe how the volume can be mounted by multiple nodes, not whether a specific container mounts it read-only. Option C is wrong because volumeMode is either Filesystem or Block, not ReadOnly. Option D is wrong because there is no such annotation `volume.beta.kubernetes.io/readonly` — it is fabricated.