Study. uk . com
  1. Home
  2. All questions
  3. Question 299

CKA study material · question 299 of 1000

What does a label selector's comma mean, and what operators are set-based? Choose two.

  1. A comma is a logical OR between requirements
  2. in, notin and a bare key are set-based operators
  3. =, == and != are set-based operators
  4. A comma is a logical AND between requirements
Show the answer

Answer: D. A comma is a logical AND between requirements
B. in, notin and a bare key are set-based operators

Commas mean AND; set-based selectors use in, notin and key existence, while =, == and != are equality-based.

Source: Labels and Selectors (Kubernetes) — Label selectors

Challenge yourself on this topic → Study as cards