KCNA Kubernetes Fundamentals Practice Question
Which command creates a Deployment named 'nginx' from the 'nginx:1.19' image?
⚠ Common exam trap
It's easy for candidates to confuse `kubectl run` (which creates a Pod, not a Deployment) with `kubectl create deployment`, especially since older versions of `kubectl run` could create Deployments, but the current behavior defaults to Pod creation unless the `--generator` flag is used.
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
✓
kubectl create deployment nginx --image=nginx:1.19
The `kubectl create deployment` command is the standard Kubernetes imperative method to create a Deployment resource, and specifying `--image=nginx:1.19` directly sets the container image for the pod template. This command generates a Deployment object that manages a ReplicaSet with the specified image, ensuring declarative updates and rollback capabilities.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
kubectl run nginx --image=nginx:1.19
Why it's wrong here
kubectl run creates a Pod, not a Deployment.
- ✓
kubectl create deployment nginx --image=nginx:1.19
Why this is correct
This creates a Deployment named nginx with the specified image.
- ✗
kubectl start deployment nginx --image=nginx:1.19
Why it's wrong here
There is no 'kubectl start deployment' command.
- ✗
kubectl apply -f nginx-deployment.yaml
Why it's wrong here
This applies a YAML file, but does not create from the command line directly.
Go deeper
Related to this question
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 →
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.