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

Question:
Which of the following are valid grouping operators in PromQL for aggregating over dimensions?

  1. by
  2. on
  3. without
  4. group
Answer:
A, B - The valid grouping operators in PromQL for aggregating over dimensions are by and on. The by operator groups time series by the given label(s), and the on operator specifies which labels should be included in the result