nerdexam
Docker

DCA · Question #124

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? Sol

Sign in or unlock DCA to reveal the answer and full explanation for question #124. The question stem and answer options stay visible for context.

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

Unlock DCA to see the answer

You've previewed enough free DCA questions. Unlock DCA for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Kubernetes volumes#hostPath#Local development setup#Volume mounting
Full DCA Practice