exam questions

Exam KCNA All Questions

View all questions & answers for the KCNA exam

Exam KCNA topic 1 question 174 discussion

Actual exam question from Linux Foundation's KCNA
Question #: 174
Topic #: 1
[All KCNA Questions]

Which of the following options include only mandatory fields to create a Kubernetes object using a YAML file?

  • A. apiVersion, template, kind, status
  • B. apiVersion, metadata, status, spec
  • C. apiVersion, template, kind, spec
  • D. apiVersion, metadata, kind, spec
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
8378ffe
2 months, 2 weeks ago
Selected Answer: D
The mandatory fields required to create a Kubernetes object using a YAML file are: apiVersion: Specifies the version of the Kubernetes API you are using to create the object. kind: Defines the type of Kubernetes object you want to create (e.g., Pod, Deployment, Service). metadata: Contains data that helps uniquely identify the object, such as its name and optional namespace. spec: Describes the desired state of the object, varying significantly depending on the kind of object.
upvoted 1 times
...
Zangi
4 months, 1 week ago
Selected Answer: B
Feels like B is the one. Does anyone disagree?
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...