CKAD Practice Question: Application Environment, Configuration and Security
A pod needs to mount a Secret named 'db-secret' as a volume at /etc/secret. Which volume mount definition is correct?
⚠ Common exam trap
Watch out — candidates often confuse the `secret` volume source with the `configMap` volume source, or incorrectly use `secretVolumeSource` (which is not a valid field) instead of the correct `secret` key, leading them to choose option B.
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
✓
volumes: - name: secret-volume secret: secretName: db-secret
It uses the proper `secret` key under the `volumes` field to reference a Secret object by its `secretName`. When this volume is mounted at `/etc/secret`, Kubernetes automatically creates a file for each key in the Secret, with the file content being the decoded value of the key. This is the standard syntax for mounting a Secret as a volume.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
volumes: - name: secret-volume secret: secretName: db-secret
Why this is correct
This is the correct syntax: 'secret' with 'secretName' field.
- ✗
volumes: - name: secret-volume secretVolumeSource: secretName: db-secret
Why it's wrong here
'secretVolumeSource' is not a valid field; the correct key is 'secret'.
- ✗
volumes: - name: db-secret secret: secretName: db-secret
Why it's wrong here
The volume name should be arbitrary; using the secret name as volume name is allowed but not required. However, the correct field is 'secretName', not 'name'.
- ✗
volumes: - name: secret-volume secret: name: db-secret
Why it's wrong here
Missing the 'secretName' or correct field; 'secret' with 'name' is a common mistake. The correct field is 'secretName'.
Go deeper
Related to this question
About these practice questions
This CKAD question is part of Courseiva's 160-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 CKAD 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 CKAD exam.