Skip to content

Postgresql Performance Tuning Practice Exam

Test yourself under real exam conditions: 50 timed questions, 60 on the clock, pass mark 70%%. Instant score with a full review of everything you got wrong. Free — no account needed.

📝 50 questions · ⏱ 60 minutes · 🎯 Pass mark 70% · 🆓 Free, no signup

Exam details

  • 50 questions drawn from 103 cards
  • Countdown timer — auto-submits when time runs out
  • Pass mark 70% (real certification threshold)
  • Full review of wrong answers at the end
  • No signup required — save your score with a free account

Sample Questions

5 shown

How do you find the slowest queries in Postgres?

Show ▼

Enable pg_stat_statements extension. Then:

SELECT query, calls, total_exec_time, mean_exec_time FROM pg_stat_statements ORDER BY total_exec_time DESC LIMIT 20;

How do you read an EXPLAIN plan?

Show ▼

Read bottom-up: leaf nodes first (table scans / index scans), then joins, then aggregates. Look for high cost, rows, and actual time.

Difference between EXPLAIN, EXPLAIN ANALYZE, EXPLAIN (BUFFERS, ANALYZE)?

Show ▼

EXPLAIN: planner's estimate only.
EXPLAIN ANALYZE: actually runs the query and reports real times.
EXPLAIN (BUFFERS, ANALYZE): + buffer hits/misses — tells you I/O vs cache.

Why is a Seq Scan faster than an Index Scan sometimes?

Show ▼

When the planner expects to return a large fraction of the table — random I/O via the index would be slower than reading sequentially.

Function used to add a B-tree index for equality + range queries?

Show ▼

CREATE INDEX ON t (col); — default is B-tree.

🎯 Take the Postgresql Performance Tuning Practice Exam