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

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 - is the correct answer. The prometheus.yml configuration file is used to define the target endpoints that Prometheus should scrape for metric data