KCNA Kubernetes Fundamentals Practice Question
You have a Deployment that uses a ConfigMap for configuration. You update the ConfigMap with new data. However, the pods in the Deployment continue to use the old configuration. What is the most likely reason?
⚠ Common exam trap
CNCF often tests the misconception that updating a ConfigMap automatically updates running Pods, when in fact the Pod must be restarted (or the application must watch for file changes) for the new configuration to take effect.
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
✓
The ConfigMap is mounted as a volume, and the pods have not been restarted
When a ConfigMap is mounted as a volume in a Pod, updates to the ConfigMap are automatically propagated to the mounted files, but the running process inside the container does not automatically reload the configuration. The Pod must be restarted (e.g., by rolling update or manual deletion) for the application to read the new values. This is the most common reason for stale configuration in a Deployment.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The ConfigMap data is immutable and cannot be updated
Why it's wrong here
ConfigMaps can be updated unless they are marked as immutable. By default, they are mutable.
- ✗
The ConfigMap is referenced by a different name in the pod spec
Why it's wrong here
If the name were different, the pods would not have the updated ConfigMap at all; here they have the old configuration, so the name is correct.
- ✓
The ConfigMap is mounted as a volume, and the pods have not been restarted
Why this is correct
When a ConfigMap is mounted as a volume, the files are updated eventually, but the application may not automatically reload the configuration. For environment variables, the pod must be restarted. In either case, without a restart, the old configuration is used.
- ✗
The Deployment's update strategy is set to Recreate
Why it's wrong here
The update strategy affects how pods are replaced during a Deployment update, not how ConfigMap changes are propagated.
Go deeper
Related to this question
About these practice questions
One of 833 original KCNA practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This KCNA practice question is part of Courseiva's free CNCF 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 KCNA exam.