Courseiva

PCA · topic practice

Promql practice questions

Practise Prometheus Certified Associate (PCA, CNCF/Linux Foundation) (PCA) Promql practice questions — original exam-style scenarios with answer choices, explanations, and analysis of common mistakes.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Reviewed byJohnson Ajibi· MSc IT Security
20 questionsDomain: Promql

What the exam tests

What to know about Promql

Promql questions test whether you can apply the concept in context, not just recognise a definition.

How the topic appears in realistic exam-style scenarios.

Which detail in the question changes the correct answer.

How to eliminate plausible but wrong options.

How to connect the question back to the wider exam objective.

Watch out for

Common Promql exam traps

  • Answering from memory before reading the full scenario.
  • Missing a constraint such as cost, availability, security, scope or command context.
  • Choosing a broad answer when the question asks for the most specific fix.
  • Ignoring why the wrong options are tempting.

Practice set

Promql questions

20 questions · select your answer, then reveal the explanation

Question 1mediummultiple choice
Read the full Promql explanation →

You want to aggregate total memory usage by 'job' using the 'node_memory_Usage_bytes' metric, while keeping the 'instance' label in the output. Which aggregation clause should you use?

Question 2easymultiple choice
Read the full Promql explanation →

Which of the following expressions correctly retrieves an instant vector of all HTTP requests with a 200 status code?

Question 3hardmultiple choice
Read the full Promql explanation →

You have two metrics: 'up' (a gauge) and 'process_cpu_seconds_total' (a counter). You want to filter 'process_cpu_seconds_total' by instances where 'up == 1'. Which join modifier is required?

Question 4easymultiple choice
Read the full Promql explanation →

How does PromQL handle operator precedence between arithmetic operators like multiplication (*) and addition (+)?

Question 5easymultiple choice
Read the full Promql explanation →

Which selector syntax correctly matches all time series where the environment label does NOT equal production?

Question 6mediummultiple choice
Read the full Promql explanation →

An administrator wants to aggregate CPU usage across all nodes, keeping the instance label while summing the values. Which aggregation clause should be used?

Question 7mediummultiple choice
Read the full Promql explanation →

When performing a vector-to-vector binary operation between two instant vectors of different label sets, which modifier allows matching on a subset of common labels?

Question 8easymultiple choice
Read the full Promql explanation →

An operator needs to query the current, un-extrapolated rate of increase per second over the last 5 minutes for a counter metric named http_requests_total. Which function should they use?

Question 9easymultiple choice
Read the full Promql explanation →

A user executes an instant query for a metric without providing a range vector. What type of vector is returned by default?

Question 10mediummultiple choice
Read the full Promql explanation →

You need to calculate the 99th percentile HTTP request latency from a Prometheus histogram named http_request_duration_seconds. Which function is correct?

Question 11mediummultiple choice
Read the full Promql explanation →

An engineer needs to determine the total absolute increase in disk space consumed over the last 3 hours using a gauge metric node_disk_bytes_used. Which function is appropriate?

Question 12easymultiple choice
Read the full Promql explanation →

Which PromQL aggregator should be used to count the total number of active time series matching a selector?

Question 13easymultiple choice
Read the full Promql explanation →

Which label matcher operator is used for exact equality in PromQL selectors?

Question 14hardmultiple choice
Read the full Promql explanation →

You are joining an instant vector of application versions with an instant vector of metrics using a many-to-one relationship. The application version vector has more labels than the metric vector. Which keyword must be appended to the matching modifier to include labels from the 'many' side?

Question 15hardmultiple choice
Read the full Promql explanation →

A Prometheus alert expression uses rate(http_requests_total[5m]) > 10. During a service restart, counter resets occur. How does the rate() function account for these counter resets?

Question 16easymultiple choice
Read the full Promql explanation →

Which regular expression matcher selects all time series where the status label begins with the digit 5?

Question 17hardmultiple choice
Read the full Promql explanation →

You want to find the maximum value of a gauge metric across all instances over a 1-hour sliding window. Which function accomplishes this?

Question 18easymultiple choice
Read the full Promql explanation →

What is the primary difference between an instant vector and a range vector in PromQL?

Question 19mediummultiple choice
Read the full Promql explanation →

You need to calculate the per-second rate of increase of http_requests_total over a 1-minute window. Why is using a 1-minute range window generally discouraged in production?

Question 20mediummultiple choice
Read the full Promql explanation →

An operator writes the query sum(rate(http_requests_total[5m])) without any aggregation clauses. What is the output format?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Promql sessions

Start a Promql only practice session

Every question in these sessions is drawn from the Promql domain — nothing else.

Related practice questions

Related PCA topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the PCA exam test about Promql?
Promql questions test whether you can apply the concept in context, not just recognise a definition.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Promql questions in a focused session?
Yes — the session launcher on this page draws every question from the Promql domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other PCA topics?
Use the topic links above to move to related areas, or go back to the PCA question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the PCA exam covers. They are not copied from any real exam or dump site.