KCNA Kubernetes Fundamentals Practice Question
You need to store a database password securely and make it available to a Pod as an environment variable. Which Kubernetes resource should you create?
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
Secrets are designed to store sensitive data, such as passwords, and can be exposed to Pods via environment variables or volumes.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Secret
Why this is correct
Secrets store sensitive data like passwords, tokens, and keys.
- ✗
PersistentVolume
Why it's wrong here
PersistentVolumes provide storage, not a mechanism to expose data as environment variables.
- ✗
ConfigMap
Why it's wrong here
ConfigMaps are for non-sensitive configuration data, not for secrets.
- ✗
ServiceAccount
Why it's wrong here
ServiceAccounts provide identity for Pods, not storage of arbitrary secrets.
Go deeper
Related to this question
About these practice questions
This KCNA question is part of Courseiva's 833-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 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.