Drag steps to the numbered slots on the right, or tap a step then tap a slot.
KCNA Cloud Native Application Delivery Practice Question
Drag and drop the steps to create a Kubernetes deployment using kubectl into the correct order.
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
Create a YAML definition file, then run kubectl apply, then verify the deployment, then check pods, then expose the deployment as a service.
First, define the deployment in a YAML file, then apply it, verify creation, check pods, and optionally expose it as a service.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Create a YAML definition file, then run kubectl apply, then verify the deployment, then check pods, then expose the deployment as a service.
Why this is correct
This is the correct order because you must first define the deployment in a YAML file, then apply it to create resources, verify creation, ensure pods are running, and optionally expose the deployment.
- ✗
Create a YAML definition file, then verify the deployment, then run kubectl apply, then check pods, then expose the deployment as a service.
Why it's wrong here
This is incorrect because verification cannot occur before applying the configuration; the deployment does not exist yet.
- ✗
Run kubectl apply, then create a YAML definition file, then verify the deployment, then expose the deployment as a service, then check pods.
Why it's wrong here
This is incorrect because kubectl apply requires a YAML file to exist first; you cannot apply before creation.
- ✗
Create a YAML definition file, then run kubectl apply, then expose the deployment as a service, then check pods, then verify the deployment.
Why it's wrong here
This is incorrect because exposing the service should come after pods are running and verification is complete; checking pods before verifying deployment skips confirmation of deployment success.
Go deeper
Related to this question
Learn chapter
Kubernetes Overview and Core Components
Key term
Kubernetes API Primitives
Kubernetes API Primitives are the basic building blocks that the Kubernetes API uses to represent and manage the state of a cluster, such as Pods, Services, Deployments, and Namespaces.
Key term
ReplicaSet and Replication
A ReplicaSet ensures a specified number of identical pod instances are running at all times in Kubernetes, using replication to maintain availability and stability.
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 →
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.