XK0-006 Automation, Orchestration, and Scripting Practice Question
A Kubernetes YAML manifest defines a Deployment. Which field specifies the number of pod replicas to run?
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
✓
spec.replicas
In a Deployment spec, the 'replicas' field sets the desired number of pod instances.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
metadata.replicas
Why it's wrong here
Replicas is not under metadata.
- ✗
spec.template.replicas
Why it's wrong here
The template does not contain replicas.
- ✗
spec.containers.replicas
Why it's wrong here
Containers do not have a replicas field.
- ✓
spec.replicas
Why this is correct
This is the correct field to set the number of replicas.
Go deeper
Related to this question
About these practice questions
This XK0-006 question is part of Courseiva's 979-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 XK0-006 practice question is part of Courseiva's free CompTIA 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 XK0-006 exam.