KCSA Kubernetes Threat Model Practice Question
A developer accidentally hardcodes a database password directly into a container's environment variables within a Deployment manifest. According to the Kubernetes threat model, what is the primary risk associated with storing plaintext secrets as environment variables?
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
✓
Environment variables are automatically logged in plain text by the container runtime logs and can be viewed via kubectl describe pod.
Environment variables are visible to anyone who can inspect the pod specification, view process listings inside the container, or access certain debugging endpoints, making them less secure than Kubernetes Secrets mounted as 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.
- ✗
Environment variables require etcd encryption at rest to function correctly.
Why it's wrong here
Environment variables have no dependency on etcd encryption configuration.
- ✓
Environment variables are automatically logged in plain text by the container runtime logs and can be viewed via kubectl describe pod.
Why this is correct
Correct. Pod specifications and environment variables are visible via kubectl describe and can be exposed through logs or process inspectors.
- ✗
Environment variables cannot be read by the application running inside the container.
Why it's wrong here
Applications can easily read environment variables; the risk is unauthorized visibility by users with pod read access.
- ✗
Environment variables prevent the pod from passing liveness probes.
Why it's wrong here
Environment variables do not interfere with liveness probe execution.
About these practice questions
Courseiva writes every KCSA question from scratch — 320 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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 August 2026 · checked against the official CNCF / Linux Foundation exam blueprint
This KCSA practice question is part of Courseiva's free CNCF / Linux Foundation 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 KCSA exam.