A developer asks to mount the node’s container runtime socket via hostPath into a ordinary business app Pod for convenience. What is the CKAD-oriented response?
Select an answer to reveal the explanation.
Short Explanation
hostPath is like giving every guest a master key to the hotel’s boiler room—powerful, node-tied, and usually the wrong default for a normal business app. Use emptyDir or a PVC instead.
Full Explanation
hostPath mounts a node filesystem path into a Pod, coupling the workload to that node and often elevating risk—especially with runtime sockets. Application data should typically use emptyDir for ephemeral scratch or PVCs for durable storage. Runtime socket hostPath is not a portable application data pattern for ordinary Deployments.