What is the purpose of Kubernetes Labels?

What is the purpose of Kubernetes Labels?

a) To store metadata in key-value pairs for objects
b) To generate Pod logs
c) To define storage classes
d) To create configuration files

Answer:

a) To store metadata in key-value pairs for objects

Explanation:

Labels are key-value pairs attached to objects such as Pods or Services, and are used for identifying and selecting objects within the cluster based on their metadata.

Reference:

Kubernetes Quiz – MCQ – Multiple Choice Questions

Scroll to Top