Question 994 of 997
Cloud Native Application DeliveryeasyMultiple ChoiceObjective-mapped

KCNA Cloud Native Application Delivery Practice Question

This KCNA practice question tests your understanding of cloud native application delivery. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A team is deploying a new microservice that processes sensitive user data. They want to ensure that secrets such as database passwords are not exposed in the container image or environment variables. Which approach should they use?

Question 1easymultiple choice
Full question →

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

Store the secret in a Kubernetes Secret and mount it as a volume in the pod

Option C is correct because Kubernetes Secrets are designed specifically to store sensitive data like database passwords. Mounting the Secret as a volume ensures the secret data is available to the pod as files, without being exposed in environment variables (which can be leaked via logs or `kubectl describe`) or embedded in the container image. This approach follows security best practices for handling sensitive information in cloud-native applications.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Embed the secret directly in the Docker image and use it via environment variables

    Why it's wrong here

    Embedding secrets in images is insecure and violates best practices.

  • Store the secret in a ConfigMap and reference it in the pod spec

    Why it's wrong here

    ConfigMaps are not designed for secrets and are not encrypted.

  • Store the secret in a Kubernetes Secret and mount it as a volume in the pod

    Why this is correct

    Secrets are designed for sensitive data; volume mounts reduce exposure.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Use a PersistentVolumeClaim to store the secret and mount it into the pod

    Why it's wrong here

    PVCs are for storage, not for secrets; this is not a standard pattern.

Common exam traps

Common exam trap: answer the scenario, not the keyword

CNCF often tests the misconception that ConfigMaps are suitable for secrets because they can store key-value pairs, but the trap is that ConfigMaps store data in plaintext and are not designed for sensitive information, whereas Secrets provide base64 encoding and optional encryption at rest.

Detailed technical explanation

How to think about this question

When a Secret is mounted as a volume, Kubernetes creates a tmpfs (in-memory filesystem) for the secret data, ensuring it is never written to disk on the node. The secret data is base64-encoded in the API object, but Kubernetes supports encryption at rest via etcd encryption providers (e.g., AES-CBC with a KMS provider). In real-world scenarios, teams often combine Secrets with external secret management tools (e.g., HashiCorp Vault) using sidecar containers or CSI drivers for dynamic secret rotation without pod restarts.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A small business has 20 workstations on the 192.168.1.0/24 network and one public IP from its ISP. The router uses PAT (NAT overload) so all 20 devices share one public address using different source ports. NAT questions test whether you understand the four address terms and which direction each translation applies.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related KCNA practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free KCNA practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this KCNA question test?

Cloud Native Application Delivery — This question tests Cloud Native Application Delivery — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Store the secret in a Kubernetes Secret and mount it as a volume in the pod — Option C is correct because Kubernetes Secrets are designed specifically to store sensitive data like database passwords. Mounting the Secret as a volume ensures the secret data is available to the pod as files, without being exposed in environment variables (which can be leaked via logs or `kubectl describe`) or embedded in the container image. This approach follows security best practices for handling sensitive information in cloud-native applications.

What should I do if I get this KCNA question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 30, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.