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

Question:
Which of the following queries results in an instant vector?

  1. rate(up[5m])[10m:1m]
  2. up{type="instant"}[5m]
  3. rate(up[5m])
  4. 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