200-901 Application Deployment and Security Practice Question
A Kubernetes pod contains two containers that need to share a local filesystem. Which volume type should be used to enable this?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
emptyDir
An emptyDir volume is created empty when a pod is assigned to a node and exists as long as the pod runs; it can be mounted by multiple containers within the same pod.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
hostPath
Why it's wrong here
hostPath mounts a directory from the node's filesystem, tying the pod to one node and exposing node-level paths; it does not create a pod-scoped volume both containers share. It suits reading node logs or Docker internals, not container-to-container data exchange.
- ✓
emptyDir
Why this is correct
emptyDir creates a volume that exists for the pod's lifetime and is mounted into every container that requests it, so both containers read and write the same directory. It satisfies the shared local filesystem requirement, unlike hostPath, which ties the pod to a specific node.
- ✗
configMap
Why it's wrong here
configMap volumes expose configuration data as files and are read-only by design, so containers cannot write shared state. They are correct for injecting settings, environment files or certificates, not for a writable filesystem two containers must both read and write.
- ✗
persistentVolumeClaim
Why it's wrong here
A persistentVolumeClaim binds to external storage provisioned through a StorageClass, giving durable data independent of the pod lifecycle. It is right for stateful workloads needing persistence across restarts, but the scenario requires only ephemeral sharing within one pod, which an emptyDir satisfies.
Go deeper
Related to this question
About these practice questions
This 200-901 question is part of Courseiva's 975-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 200-901 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 200-901 exam.