nerdexam
DockerDocker

DCA · Question #124

DCA Question #124: Real Exam Question with Answer & Explanation

The correct answer is B: No. A hostPath volume in Kubernetes mounts a directory from the node's filesystem, not directly from a developer's local laptop unless the laptop is the Kubernetes node itself.

Submitted by javi_es· Apr 18, 2026Storage and Volumes

Question

During development of an application meant to be orchestrated by Kubernetes, you want to mount the /data directory on your laptop into a container. Will this strategy successfully accomplish this? Solution: Add a volume to the pod that sets hostPath.path: /data, and then mount this volume into the pod's containers as desired.

Options

  • AYes
  • BNo

Explanation

A hostPath volume in Kubernetes mounts a directory from the node's filesystem, not directly from a developer's local laptop unless the laptop is the Kubernetes node itself.

Common mistakes.

  • A. While hostPath enables host filesystem mounts, it refers to the filesystem of the Kubernetes worker node, not a separate local development machine.

Concept tested. Kubernetes hostPath volume semantics

Reference. https://kubernetes.io/docs/concepts/storage/volumes/#hostpath

Topics

#Kubernetes volumes#hostPath#Local development setup#Volume mounting

Community Discussion

No community discussion yet for this question.

Full DCA PracticeBrowse All DCA Questions