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

Question:
What is the purpose of the prometheus.yml configuration file?

  1. To define alert rules
  2. To define target endpoints
  3. To define scrape intervals
  4. To define exporter configurations
Answer:
B - correct answer. The prometheus.yml configuration file is used to define the target endpoints that Prometheus should scrape for metric data