CKAD Application Deployment Practice Question
You have a Deployment 'db' that uses a ConfigMap for configuration. You want to update the ConfigMap and roll out the changes to pods without restarting them manually. Which approach should you use?
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
✓
Update the ConfigMap and then update the Deployment's pod template (e.g., change an annotation) to trigger a rolling update
Mounting ConfigMaps as volumes with subPath does not automatically update pods; however, using environment variables from ConfigMaps also does not update pods. The recommended approach is to use a Deployment update with a change that triggers a rollout (e.g., updating an annotation). Option B is correct.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Delete the ConfigMap and recreate it with the same name
Why it's wrong here
Does not trigger pod update.
- ✓
Update the ConfigMap and then update the Deployment's pod template (e.g., change an annotation) to trigger a rolling update
Why this is correct
Pods will be recreated with the new ConfigMap.
- ✗
Edit the ConfigMap and run kubectl rollout restart deployment/db
Why it's wrong here
This restarts pods, but the pods will still have the old ConfigMap data until they restart.
- ✗
Use kubectl replace on the ConfigMap and the pods will automatically get the new values
Why it's wrong here
Pods do not automatically get updated unless they watch for changes.
Go deeper
Related to this question
About these practice questions
This CKAD question is part of Courseiva's 160-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 CKAD 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 CKAD exam.