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

Question:
How is alert grouping configured?

  1. In the Alertmanager configuration file at a global level
  2. In the Prometheus configuration file at a global level
  3. In the Prometheus rule files via the group_by attribute
  4. In the Alertmanager configuration file on a per-route basis
Answer:
D - is correct answer. More at grouping and route
A - is incorrect as grouping is configured on a per-route basis, not globally. Though grouping configuration is inherited by child routes that do not configure grouping, this is not considered global configuration as the child routes can override the grouping
B - is incorrect as alert grouping is configured in and handled by Alertmanager, not Prometheus
C - is incorrect as alert grouping is configured in and handled by Alertmanager, not Prometheus. However, this is the name of the attribute used to configure alert grouping in Alertmanager