KCNA Kubernetes Fundamentals Practice Question
Which Kubernetes object is used to store non-confidential configuration data that can be consumed by pods?
⚠ Common exam trap
CNCF often tests the distinction between ConfigMaps and Secrets, where candidates mistakenly choose Secrets for all configuration data, forgetting that Secrets are intended only for sensitive information and ConfigMaps are the correct choice for non-confidential 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
✓
ConfigMap
ConfigMap is the correct Kubernetes object for storing non-confidential configuration data, such as environment variables, command-line arguments, or configuration files, that can be consumed by pods. Unlike Secrets, ConfigMaps store data in plain text and are designed for configuration that does not require encryption, making them ideal for application settings that are not sensitive.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
ServiceAccount
Why it's wrong here
A ServiceAccount supplies an identity for processes running in pods to authenticate to the Kubernetes API, not a store of application configuration values. It is tempting because it is also mounted into pods. A ConfigMap is correct when the requirement is non-confidential configuration data.
- ✗
Secret
Why it's wrong here
A Secret stores confidential data such as passwords and tokens, and its values are base64-encoded rather than intended for plain, non-sensitive settings. It is tempting because it also injects values into pods. A ConfigMap is correct when the data is non-confidential configuration.
- ✓
ConfigMap
Why this is correct
ConfigMaps hold non-confidential key-value configuration data, decoupling it from pod images so containers can consume it via environment variables, command-line arguments, or mounted volumes. This directly satisfies the stem's requirement for storing non-confidential configuration data consumable by pods, unlike Secrets, which are intended for sensitive data.
- ✗
PersistentVolume
Why it's wrong here
A PersistentVolume provides durable block or file storage attached to pods, not key-value configuration consumed as environment variables or files. It is tempting because it also mounts data into containers. A ConfigMap is correct when the requirement is non-confidential configuration data.
Go deeper
Related to this question
About these practice questions
One of 930 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.