nerdexam
Linux_Foundation

KCNA · Question #159

To specify a Kubernetes object which language is used?

The correct answer is C. YAML. Kubernetes objects are primarily specified using YAML (YAML Ain't Markup Language) for declarative configuration.

Submitted by jaden.t· May 4, 2026Kubernetes Fundamentals

Question

To specify a Kubernetes object which language is used?

Options

  • AJSON
  • BGo
  • CYAML
  • DNode
  • EPython

How the community answered

(25 responses)
  • B
    4% (1)
  • C
    96% (24)

Why each option

Kubernetes objects are primarily specified using YAML (YAML Ain't Markup Language) for declarative configuration.

AJSON

While Kubernetes API objects can also be specified in JSON, YAML is generally preferred for configuration files due to its readability and cleaner syntax.

BGo

Go is the programming language in which Kubernetes itself is largely written, not a language for specifying Kubernetes objects.

CYAMLCorrect

Kubernetes resource definitions, such as Pods, Deployments, and Services, are most commonly written using YAML files. YAML provides a human-readable and concise syntax for declaring the desired state of Kubernetes objects.

DNode

Node (Node.js) is a JavaScript runtime environment, not a language for defining Kubernetes objects.

EPython

Python is a general-purpose programming language, not a language for directly specifying Kubernetes objects, although it can be used with client libraries to interact with the Kubernetes API.

Concept tested: Kubernetes object definition language

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

Topics

#Kubernetes objects#YAML#Resource definition#Manifests

Community Discussion

No community discussion yet for this question.

Full KCNA Practice