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

Question:
Which of the following can be used to apply metadata exposed via the various Prometheus service discovery methods as labels on scraped targets?

  1. meta_relabel_configs
  2. relabel_configs
  3. static_configs
  4. metric_relabel_configs
Answer:
B - is the correct answer
A - there is no such thing called meta_relabel_configs in Prometheus
C - static_configs are not a service discovery method and thus do not expose any metadata. Nor can they apply metadata from service discovery methods as labels
D - metric_label_configs operate on metrics, not targets