KCNA Cloud Native Architecture Practice Question
Which command would you use to apply a manifest file 'deployment.yaml' to a Kubernetes cluster?
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 apply -f deployment.yaml
The 'kubectl apply' command is used to apply or update resources from a manifest file.
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 deployment.yaml
Why it's wrong here
kubectl run is used to run a specific image, not apply a manifest.
- ✗
kubectl set image deployment.yaml
Why it's wrong here
kubectl set image updates the image of a deployment, not apply a manifest.
- ✓
kubectl apply -f deployment.yaml
Why this is correct
kubectl apply creates or updates resources declaratively.
- ✗
kubectl create -f deployment.yaml
Why it's wrong here
kubectl create is used to create resources, but it will fail if the resource already exists.
Go deeper
Related to this question
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 →
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.