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

Question:
Where are alerting rules defined?

  1. Directly in the Alertmanager configuration file
  2. In designated files, referenced by the Prometheus configuration file
  3. In designated files, referenced by the Alertmanager --alerting-rules command line flag
  4. In designated files, referenced by the Alertmanager configuration file
Answer:
B - is the correct answer. More at defining-alerting-rules
A - is incorrect as alerting rules are actually defined in their own files and referenced by Prometheus
C, D - are incorrect as it is actually Prometheus that references and evaluates alerting rules, not Alertmanager