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

Question:
Which of the following configuration options are available in Prometheus for defining scrape targets? (Select all that apply)

  1. target_groups
  2. scrape_configs
  3. job_configs
  4. metric_configs
Answer:
A, B - In Prometheus, scrape targets are defined in scrape_configs sections within prometheus.yml configuration file. Multiple scrape configurations can be defined, and they can be organized into target groups