Courseiva
Cloud Native Application DeliverymediumDrag & DropObjective-mapped

KCNA Cloud Native Application Delivery Practice Question

Drag and drop the steps to create a ConfigMap from a file in Kubernetes into the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5

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

Prepare the file, then create the ConfigMap, then verify it, then describe it, then use it in a Pod.

The correct sequence to create a ConfigMap from a file in Kubernetes is: first prepare the configuration file, then create the ConfigMap using kubectl create configmap, next verify the ConfigMap with kubectl get configmaps, then optionally describe it with kubectl describe configmap, and finally use it in a Pod as environment variables or volume mounts. This order ensures the ConfigMap is available and correctly configured before consumption.

Answer analysis

Option-by-option breakdown

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

  • Prepare the file, then create the ConfigMap, then verify it, then describe it, then use it in a Pod.

    Why this is correct

    This order is correct because you must first have the configuration data in a file, then create the ConfigMap from that file, verify its existence, inspect its details if needed, and finally use it in a Pod.

  • Prepare the file, then create the ConfigMap, then describe it, then verify it, then use it in a Pod.

    Why it's wrong here

    This order is incorrect because you should verify the ConfigMap exists before describing it; describing a resource that does not exist would fail. The proper step is to verify first, then describe.

  • Prepare the file, then create the ConfigMap, then use it in a Pod, then verify it, then describe it.

    Why it's wrong here

    This order is incorrect because you should verify and describe the ConfigMap before referencing it in a Pod to ensure it was created correctly. Using it first risks errors if the ConfigMap is missing or misconfigured.

  • Create the ConfigMap, then prepare the file, then verify it, then describe it, then use it in a Pod.

    Why it's wrong here

    This order is incorrect because you cannot create a ConfigMap from a file before the file is prepared. The file must exist with the configuration data before running the kubectl create command.

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 →

How Courseiva writes practice questions · Editorial policy

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.