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

Question:
Which of the following queries will return the currently firing alerts in Alertmanager?

  1. ALERTS{alertstate="firing"}
  2. ALERTS
  3. ALERTS{alertstate="firing",location="alertmanager"}
  4. No such query exists
Answer:
D - is the correct answer.
While Prometheus exposes the synthetic ALERTS time series based on the alerts it evaluates, the only way to get the currently firing alerts in Alertmanager is via the Alertmanager API, not PromQL.
Reference: Inspecting alerts during runtime