PCA (Prometheus Certified Associate) sample exam question with answer 274
Question:
Which type of Prometheus target configuration requires manually setting each scrape target?
- http_sd_configs
- static_configs
- kubernetes_sd_configs
- 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