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

Question:
What is the purpose of federation in Prometheus?

  1. To enable a Prometheus server to scrape selected time series from another Prometheus server
  2. To allow multiple Prometheus servers to communicate with each other for alerting and querying
  3. To scale Prometheus monitoring setups in environments with millions of nodes
  4. All of the above
Answer:
A - is the correct answer. Federation in Prometheus allows one Prometheus server to scrape selected time series data from another Prometheus server. This is useful for achieving scalable monitoring setups or for pulling related metrics from one service's Prometheus into another