KCNA · Question #23
What is the primary mechanism to identify grouped objects in a Kubernetes cluster?
The correct answer is B. Labels. Labels are the primary mechanism in Kubernetes for attaching identifying metadata to objects, enabling their grouping and selection.
Question
What is the primary mechanism to identify grouped objects in a Kubernetes cluster?
Options
- ACustom Resources
- BLabels
- CLabel Selector
- DPod
How the community answered
(24 responses)- B92% (22)
- C4% (1)
- D4% (1)
Why each option
Labels are the primary mechanism in Kubernetes for attaching identifying metadata to objects, enabling their grouping and selection.
Custom Resources extend the Kubernetes API with new object types but are not the primary mechanism for grouping *existing* objects.
Labels are key/value pairs attached to Kubernetes objects, such as Pods and Services, which are used to organize and select subsets of objects for management and operational purposes.
A Label Selector is used to *query* and filter objects based on their labels, rather than being the mechanism that identifies grouped objects itself.
A Pod is a specific type of Kubernetes object, representing a single instance of a running application, not a mechanism for grouping multiple objects.
Concept tested: Kubernetes Labels and Object Grouping
Source: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
Topics
Community Discussion
No community discussion yet for this question.