KCNA Kubernetes Fundamentals Practice Question
A developer needs to store non-confidential configuration data, such as a database hostname and port, that can be consumed by multiple Pods in a namespace. The data should be decoupled from the Pod specification to allow updates without rebuilding images. Which Kubernetes resource is designed for this purpose?
⚠ Common exam trap
The trap here is assuming that Secrets should be used for any configuration data, but Secrets are meant for sensitive information, not general configuration.
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
ConfigMaps are the standard Kubernetes resource for storing non-confidential configuration data. They allow you to separate configuration from container images, making applications more portable and easier to manage. Pods can reference ConfigMaps as environment variables, command-line arguments, or files in a volume. This enables dynamic updates to configuration without redeploying Pods, depending on how the ConfigMap is consumed.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
ConfigMap
Why this is correct
A ConfigMap is specifically designed to hold non-confidential configuration data as key-value pairs. It can be consumed by Pods via environment variables, command-line arguments, or volume mounts. This decouples configuration from the Pod spec, allowing updates without image changes.
- ✗
ServiceAccount
Why it's wrong here
A ServiceAccount provides an identity for processes running in a Pod to authenticate to the Kubernetes API. It is not used to store application configuration data. While it can be mounted as a token, it does not offer a way to manage arbitrary configuration key-value pairs.
- ✗
PersistentVolumeClaim
Why it's wrong here
A PersistentVolumeClaim requests storage, not configuration data. It is used to mount persistent volumes into Pods for file storage. It does not provide a mechanism to inject key-value configuration into containers, so it is not suitable for this scenario.
- ✗
Secret
Why it's wrong here
A Secret is intended for sensitive data like passwords or tokens, not general configuration. While it can store non-confidential data, it is not the appropriate resource for plain configuration. Using a Secret for non-sensitive data adds unnecessary complexity and may mislead security practices.
Go deeper
Related to this question
About these practice questions
This KCNA question is part of Courseiva's 930-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 and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official CNCF exam blueprint
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.