DCA Exam QuestionsBrowse all questions from this exam

DCA Exam - Question 49


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?

Add a volume to the pod that sets hostPath.path: /data, and then mount this volume into the pod’s containers as desired.

Show Answer
Correct Answer:

Discussion

2 comments
Sign in to comment
bombtux
Jan 17, 2024

A. By adding a volume to the pod that specifies hostPath.path: /data, you can directly mount a host directory to the pod. This configuration makes your laptop's /data directory accessible within the pod. You can then mount this volume to the pod's containers as needed. It is a common practice during development to provide local data access to containers in a Kubernetes environment.

bes_iOption: A
Aug 10, 2024

correct