CK.IV · CKAD practice question

A container sets readOnlyRootFilesystem: true, and the application writes temporary lock/cache files to /tmp. Which change allows /tmp to be writable while keeping the rest of the root filesystem read-only?

Choose one answer
Check answer and explanation

Correct answer: Mount an emptyDir volume at /tmp

Explanation

Mounting an emptyDir volume at /tmp gives the container a writable directory backed by ephemeral storage while keeping the root filesystem read-only.

Common trap

Mounting an emptyDir volume at /tmp gives the container a writable directory backed by ephemeral storage while keeping the root filesystem read-only.

Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.

Report an error in this question