KCNA Kubernetes Fundamentals Practice Question
Which of the following is a way to provide configuration data to a pod without baking it into the container image?
⚠ Common exam trap
Candidates often select Secret because they think all configuration data should be secure, but ConfigMap is intended for non-sensitive data.
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
✓
Using a ConfigMap
A ConfigMap is a Kubernetes API object used to decouple configuration artifacts from container images, allowing you to inject configuration data (e.g., environment variables, command-line arguments, or configuration files) into pods without rebuilding the image. This is the standard way to provide non-sensitive configuration data to pods at runtime, as defined in the Kubernetes documentation.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Using a ConfigMap
Why this is correct
ConfigMaps store configuration data that can be consumed by pods as environment variables or files.
- ✗
Using an annotation
Why it's wrong here
Annotations are metadata, not for configuration data injection.
- ✗
Using a Secret
Why it's wrong here
Secrets are for sensitive data, but both can be used for configuration. However, ConfigMap is the generic choice.
- ✗
Using a PersistentVolume
Why it's wrong here
PersistentVolumes are for storage, not configuration.
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.