PCA (Prometheus Certified Associate) sample exam question with answer 259

Question:
As far as alert metadata goes, would "data center" be more appropriate as a label or an annotation?

  1. Annotation
  2. Label
  3. Either one would be acceptable
  4. Neither one would be acceptable
Answer:
B - "data center" would be more appropriate as a label. Labels are ideal for metadata that identifies an alert and can be used for routing, silencing, etc. whereas annotations are better suited for longer-form content like a description of the alert or a link to a runbook. Only labels can be used for grouping, routing and silencing, not annotations