Courseiva
Container OrchestrationmediumMultiple SelectObjective-mapped

KCNA Container Orchestration Practice Question

Which TWO of the following are required fields when defining a container in a Kubernetes Pod spec? (Choose 2)

⚠ Common exam trap

CNCF often tests the misconception that `ports` or `resources` are required because they appear in most example Pod specs, but the KCNA exam expects you to know that only `name` and `image` are mandatory per the Kubernetes API specification.

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

image

In a Kubernetes Pod spec, the `name` and `image` fields are mandatory for each container definition. The `name` field uniquely identifies the container within the Pod, and the `image` field specifies the container image to run (e.g., `nginx:1.25`). Without these two fields, the Pod creation will fail with a validation error from the Kubernetes API server.

Answer analysis

Option-by-option breakdown

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

  • env

    Why it's wrong here

    Environment variables are optional.

  • image

    Why this is correct

    The 'image' field specifies the container image to run and is required.

  • name

    Why this is correct

    The 'name' field is required for each container in a Pod spec.

  • resources

    Why it's wrong here

    Resource requests and limits are optional.

  • ports

    Why it's wrong here

    Ports are optional; they are used for documentation but not required.

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 →

How Courseiva writes practice questions · Editorial policy

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.