PCA (Prometheus Certified Associate) sample exam question with answer 44
Question:
Which of the following queries results in an instant vector?
- rate(up[5m])[10m:1m]
- up{type="instant"}[5m]
- rate(up[5m])
- up[5m]
Answer:
C - Though a range selector is specified as part of this query, the resulting range vector is passed to the rate function which returns an instant vector.
A - is incorrect as this subquery results in a range vector.
B - is incorrect as this query results in a range vector due to the range selector [5m].
D - this query results in a range vector