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

Question:
Which type of Prometheus target configuration requires manually setting each scrape target?

  1. http_sd_configs
  2. static_configs
  3. kubernetes_sd_configs
  4. file_sd_configs
Answer:
B - is the correct answer, static_config
A - is incorrect as HTTP service discovery configs dynamically discover targets via an HTTP endpoint. These targets do not need to be specified manually
C - is incorrect as Kubernetes service discovery configs dynamically discover Kubernetes primitives. These primitives do not need to be specified manually
D - is incorrect. While target files for file service discovery can be specified manually, it is also possible to have a program that writes target files automatically