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

Question:
Which binary operator can be used to compare two Prometheus metrics and return a boolean result?

  1. ==
  2. !=
  3. >
  4. <
Answer:
A - The == operator is a binary operator in PromQL that can be used to compare two Prometheus metrics and return a boolean result. The !=, >, and < operators can also be used as binary operators in PromQL, but they perform numerical comparisons between the values of the metrics rather than comparing the metrics themselves