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

Question:
What is the role of the job label in Prometheus configuration?

  1. To specify the target for scraping metrics
  2. To group metrics from different targets together
  3. To specify the scrape interval for a target
  4. To specify the alert rules for a target
Answer:
B - The job label is used to group metrics from different targets together, so that they can be treated as a single logical unit in Prometheus.
This is useful when you have multiple instances of the same service running on different machines or in different environments