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

Question:
What is service discovery?

  1. Collection of metrics from all discovered targets
  2. The process of scraping an individual target
  3. The process of determining which services exist, generally for the purpose of metrics collection
  4. The process of sending alerts to Alertmanager
Answer:
C - is the correct answer
A - is incorrect as this describes scraping
B - is incorrect as the service discovery process identifies the targets to be scraped
D - is incorrect. While service discovery can be used to discover Alertmanager instances to which to send alerts, service discovery is more general than that and does not involve sending alerts