Courseiva
Automation, Orchestration, and ScriptinghardMultiple SelectObjective-mapped

XK0-006 Automation, Orchestration, and Scripting Practice Question

A Kubernetes administrator is creating a deployment YAML manifest. Which THREE fields are required in a Deployment spec? (Select THREE.)

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

apiVersion

In a Kubernetes Deployment manifest, the three required top-level fields for object identification are apiVersion, kind, and metadata. While spec is also mandatory for a Deployment, the question asks for three required fields and the standard required set is apiVersion, kind, and metadata.

Answer analysis

Option-by-option breakdown

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

  • replicas

    Why it's wrong here

    The replicas field is optional within the spec of a Deployment. It defaults to 1 if not specified, so it is not required.

  • spec

    Why it's wrong here

    The spec field is required in a Deployment manifest to define the desired state, including the pod template and other settings.

  • apiVersion

    Why this is correct

    The apiVersion field is required in every Kubernetes manifest to specify the API version for the resource.

  • metadata

    Why this is correct

    The metadata field is required in every Kubernetes manifest to provide identifying information such as name and namespace.

  • kind

    Why this is correct

    The kind field is required in every Kubernetes manifest, but for this question focusing on the Deployment's specification, spec is considered more directly relevant.

About these practice questions

One of 979 original XK0-006 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 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.