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

Question:
The metric http_requests tracks the total number of requests across each endpoint and method. What query will return the total number of requests for each path

http_requests{method="get", path="/auth"} 3
http_requests{method="post", path="/auth"} 1
http_requests{method="get", path="/user"} 4
http_requests{method="post", path="/user"} 8
http_requests{method="post", path="/upload"} 2
http_requests{method="get", path="/tasks"} 4
http_requests{method="put", path="/tasks"} 6
http_requests{method="post", path="/tasks"} 1
http_requests{method="get", path="/admin"} 3
http_requests{method="post", path="/admin"} 9
  1. sum(http_requests{by=path})
  2. http_requests{path}
  3. sum by(path) (http_requests)
  4. http_requests on path
Answer:
C - correct answer