nerdexam
Linux_FoundationLinux_Foundation

KCNA · Question #187

KCNA Question #187: Real Exam Question with Answer & Explanation

The correct answer is A: apiVersion, kind, metadata. Every Kubernetes object definition, typically represented in YAML or JSON, requires apiVersion, kind, and metadata as top-level fields to correctly identify and manage the resource. These fields provide essential information about the object's type, version, and unique identifier

Submitted by daniela_cl· May 4, 2026Kubernetes Fundamentals

Question

What fields must exist in any Kubernetes object (e.g. YAML) file?

Options

  • AapiVersion, kind, metadata
  • Bkind, namespace, data
  • CapiVersion, metadata, namespace
  • Dkind, metadata, data

Explanation

Every Kubernetes object definition, typically represented in YAML or JSON, requires apiVersion, kind, and metadata as top-level fields to correctly identify and manage the resource. These fields provide essential information about the object's type, version, and unique identifiers.

Common mistakes.

  • B. namespace is part of metadata, and data is specific to certain objects like Secrets or ConfigMaps, not a universal required field.
  • C. namespace is a sub-field within metadata, not a top-level required field on its own, and kind is missing.
  • D. data is not a universally required field for all Kubernetes objects, and apiVersion is missing.

Concept tested. Kubernetes object basic structure

Reference. https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/

Topics

#Kubernetes YAML#Kubernetes Object Structure#API Primitives

Community Discussion

No community discussion yet for this question.

Full KCNA PracticeBrowse All KCNA Questions