exam questions

Exam KCNA All Questions

View all questions & answers for the KCNA exam

Exam KCNA topic 1 question 54 discussion

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

What is the primary mechanism to identify grouped objects in a Kubernetes cluster?

  • A. Custom Resources
  • B. Labels
  • C. Label Selector
  • D. Pod
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
yoyo2424
1 month ago
correct answer B
upvoted 1 times
...
miskill
2 months, 1 week ago
Selected Answer: B
The correct answer is: B. Labels Explanation: Labels are the primary mechanism used to identify and group objects in a Kubernetes cluster. They are key-value pairs attached to objects (such as Pods, Services, etc.) and can be used to organize, select, and filter resources within the cluster. Although C. Label Selector is also used to query and select objects based on labels, the labels themselves (B) are the mechanism that allows objects to be grouped.
upvoted 1 times
...
EzBL
5 months, 1 week ago
Selected Answer: C
Labels: Labels are key-value pairs attached to various Kubernetes objects and act as a metadata mechanism. While essential for grouping, they are the attributes used for grouping, not the grouping mechanism itself. Label Selectors, on the other hand, leverage the information provided by labels to create logical groupings: • Filtering based on Labels: They act as queries or expressions that filter objects based on their labels. You can define requirements that specify the label key and value combinations an object must possess to be considered part of the group. • Building Groups: By using label selectors, you can identify sets of objects that share specific characteristics defined by their labels. This essentially forms logical groups of objects within the cluster.
upvoted 2 times
...
SeaH0rse66
6 months, 2 weeks ago
Selected Answer: B
Labels and label selectors work hand in hand to identify and group objects, so it's easy to see why it might seem tricky. Labels provide the metadata for identification and grouping, while label selectors enable users to query and select objects based on those labels. Both are essential components of Kubernetes's flexibility and functionality.
upvoted 2 times
...
hovnival
7 months, 2 weeks ago
Selected Answer: C
Copilot: Label selectors allow you to group and select objects based on labels, making them a fundamental part of Kubernetes resource management.
upvoted 2 times
...
JBangura
8 months, 2 weeks ago
Selected Answer: C
Correct Answer: C
upvoted 2 times
...
pulsefire
9 months ago
Selected Answer: C
should be C, not B https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#:~:text=Via%20a%20label%20selector%2C%20the%20client/user%20can%20identify%20a%20set%20of%20objects.%20The%20label%20selector%20is%20the%20core%20grouping%20primitive%20in%20Kubernetes.
upvoted 2 times
...
pulsefire
9 months ago
Selected Answer: B
should be C, not B https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#:~:text=Via%20a%20label%20selector%2C%20the%20client/user%20can%20identify%20a%20set%20of%20objects.%20The%20label%20selector%20is%20the%20core%20grouping%20primitive%20in%20Kubernetes.
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 ...