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.
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.
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.
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.
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
...
Log in to ExamTopics
Sign in:
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.
yoyo2424
1 month agomiskill
2 months, 1 week agoEzBL
5 months, 1 week agoSeaH0rse66
6 months, 2 weeks agohovnival
7 months, 2 weeks agoJBangura
8 months, 2 weeks agopulsefire
9 months agopulsefire
9 months ago