PCA Promql Practice Question
What is the primary operational difference between the 'rate()' and 'irate()' functions in PromQL?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
rate() averages the per-second rate over the entire specified range vector, while irate() calculates the rate based on the last two data points in the range vector.
rate() calculates the average per-second rate over the whole range vector, smoothing spikes, whereas irate() calculates the instantaneous rate using only the last two points.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
rate() can be used with instant vectors, whereas irate() requires range vectors.
Why it's wrong here
Both functions strictly require range vectors.
- ✗
irate() automatically accounts for counter resets, whereas rate() does not.
Why it's wrong here
Both functions account for counter resets.
- ✗
irate() supports gauges, while rate() only supports counters.
Why it's wrong here
Both functions are designed for counter metrics and expect range vectors.
- ✓
rate() averages the per-second rate over the entire specified range vector, while irate() calculates the rate based on the last two data points in the range vector.
Why this is correct
irate() uses only the last two points, making it sensitive to short-term spikes, while rate() averages across the full window.
About these practice questions
One of 304 original PCA practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official CNCF / Linux Foundation exam blueprint
This PCA practice question is part of Courseiva's free CNCF / Linux Foundation certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCA exam.