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

Question:
Regarding the offset modifier, which of the following queries is NOT valid?

  1. http_requests_total offset 5m
  2. rate(http_requests_total[5m] offset 5m)
  3. sum(http_requests_total{method="GET"} offset 5m)
  4. sum(http_requests_total{method="GET"}) offset 5m
Answer:
D - The offset modifier must be directly applied to a selector, not to the result of a function or aggregation
A, B, C - his query uses the offset modifier in a valid way, immediately following the selector