A records app should run with a read-only root filesystem but still needs a writable cache directory. What configuration satisfies both?
Select an answer to reveal the explanation.
Short Explanation
Lock the house (read-only root) but leave a scratch notepad (emptyDir) where the app is allowed to scribble. That gives immutability without breaking cache writes. Privileged remounts or writing into image layers miss the point.
Full Explanation
readOnlyRootFilesystem: true prevents writes to the container root filesystem, reducing tampering risk. Applications that need scratch space should mount an explicit writable volume such as emptyDir at the required path. Privileged remounts defeat the control; ConfigMaps are not general-purpose writable scratch space; image layers are not runtime caches.