CK.IV · CKAD practice question
A Pod mounts a Secret named api-token as a file at /run/secrets/token. If you update the Secret's data in Kubernetes, what happens to the file at /run/secrets/token inside the running container?
Check answer and explanation
Correct answer: Kubelet updates the mounted file asynchronously (typically within the sync period) unless subPath is used
Explanation
Kubelet periodically syncs projected Secret volumes into the container unless subPath is used, in which case updates do not propagate.
Common trap
Kubelet periodically syncs projected Secret volumes into the container unless subPath is used, in which case updates do not propagate.
Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.