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

Question:
Let http_requests_total be a counter metric representing the number of HTTP requests a server has handled.
Which of the following queries yields the current number of requests specified by the counter?

  1. last(http_requests_total)
  2. http_requests_total
  3. count(http_requests_total)
  4. current(http_requests_total)
Answer:
B - correct answer, check more at querying basics
A, D - there is no such function or operator in PromQL called last and current
C - is incorrect as this query yields the current number of time series with that metric name, not the value held by the metric itself