PCA (Prometheus Certified Associate) sample exam question with answer 542
Question:
Which of the following queries contains an arithmetic binary operator?
- min(up)
- min_over_time(up[5m])
- up{instance="node1"} and up{instance="node2"}
- up{instance="node1"} + up{instance="node2"}
Answer:
D - is the correct answer. More at
arithmetic-binary-operators
A - is incorrect as this query contains a dimensional aggregation (min) but no arithmetic binary operator (+, -, *, /, % or ^)
B - is incorrect as this query contains a range selector and a temporal aggregation (min_over_time) but no arithmetic binary operator (+, -, *, /, % or ^)
C - is incorrect as this query contains a logical binary operator (and), not an arithmetic binary operator (+, -, *, /, % or ^)