KCNA Kubernetes Fundamentals Practice Question
You have a Pod with a container that needs to read sensitive data such as a database password. Which Kubernetes resource should you use to store this data?
⚠ Common exam trap
A common mix-up: candidates confuse ConfigMaps with Secrets, thinking both are interchangeable for configuration, but Secrets are the only resource intended for sensitive data, while ConfigMaps are for non-sensitive plaintext 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
✓
Secret
A Secret is the correct Kubernetes resource for storing sensitive data like database passwords because it encodes the data in base64 and is designed to be consumed by Pods via environment variables or volume mounts. Unlike ConfigMaps, Secrets are intended for confidential information and can be encrypted at rest using etcd encryption providers or KMS.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
PersistentVolume
Why it's wrong here
PVs are for storage, not configuration data.
- ✓
Secret
Why this is correct
Secrets store sensitive data and can be mounted as volumes or environment variables.
- ✗
ServiceAccount
Why it's wrong here
SA is for Pod identity, not for storing secrets.
- ✗
ConfigMap
Why it's wrong here
ConfigMaps are for non-sensitive configuration data.
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.