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

Question:
Where are Prometheus rule files configured to be loaded?

  1. In the Alertmanager command line arguments
  2. In the Prometheus configuration file
  3. In the Prometheus command line arguments
  4. In the Alertmanager configuration file
Answer:
B - is the correct answer. More at configuring-rules
A - is incorrect as rule files are configured to be loaded in Prometheus, not Alertmanager
C - is incorrect as the rule files are configured to be loaded in the Prometheus configuration file, not the command line arguments
D - is incorrect as rule files are configured to be loaded in Prometheus, not Alertmanager