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.
Question
To specify a Kubernetes object which language is used?
Options
- AJSON
- BGo
- CYAML
- DNode
- EPython
How the community answered
(25 responses)- B4% (1)
- C96% (24)
Why each option
Kubernetes objects are primarily specified using YAML (YAML Ain't Markup Language) for declarative configuration.
While Kubernetes API objects can also be specified in JSON, YAML is generally preferred for configuration files due to its readability and cleaner syntax.
Go is the programming language in which Kubernetes itself is largely written, not a language for specifying Kubernetes objects.
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.
Node (Node.js) is a JavaScript runtime environment, not a language for defining Kubernetes objects.
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
Community Discussion
No community discussion yet for this question.