Practice PostgreSQL transactions, indexes, query plans, permissions, maintenance and recovery with operational scenarios.
Four self-study difficulty levels, from basic concepts to advanced scenarios. Difficulty is an editorial guide, not an official certification ranking. PostgreSQL-specific behavior rather than generic SQL syntax. Use a disposable database for experiments and verify procedures against your deployed version.
YOUR PRACTICE SPACE
Learn it. Test it. Understand it.
Recognize core concepts and trace a single step.
10 questions in Easy · one answer per question · no timer
Free, no account needed. Answers stay in this tab and reset on reload. This is self-study, not a proctored exam or certificate.
Choose the right challenge
Easy checks core concepts. Medium applies them to tasks. Hard examines edge cases and failure modes. Very advanced combines constraints such as concurrency, security and recovery. Start where you are comfortable; each level has its own attempt and result. These labels are editorial, not certification grades.
What you will learn
Interpret query plans and choose useful indexes.
Understand snapshots, locking and transaction retries.
Plan least-privilege access, maintenance and recoverable backups.
Think through a real scenario
An application becomes slower after importing many rows. Before adding indexes at random, inspect the query and its estimated row counts, refresh relevant statistics when appropriate, and compare the plan with representative data. EXPLAIN ANALYZE actually executes its statement, so test writes only in a controlled environment and account for side effects.
Turn your result into a study plan
For each missed question, write down the rule you overlooked and test it with a small example. Avoid memorizing an option’s position: understanding the behavior matters more than recognizing the wording. In exam mode explanations stay hidden until you submit; in practice mode use “Check answer” to see feedback immediately.
Read further
The questions and explanations are original EmuPath teaching material. These references provide background for further study; their publishers do not endorse this exam.
Found an ambiguous question? Include the track and question text in your correction report.
Sample PostgreSQL Administration questions with explanations
Preview one question from each difficulty level before choosing a practice session. These examples also appear in the question bank. Try answering first, then open the explanation to check your reasoning.
Easy: Connections
What is psql?
A PostgreSQL interactive terminal client
The database’s only storage engine
A mandatory graphical dashboard
A replacement for a database server
Show answer and explanation
A PostgreSQL interactive terminal client
The client connects to a server and can submit SQL or client-side commands. Installing psql alone does not create or start a running database service.
Medium: Plans
What does plain EXPLAIN primarily show?
The planner’s proposed execution plan
The exact time every future execution will take
All server passwords
A complete copy of the database
Show answer and explanation
The planner’s proposed execution plan
A plan includes estimates based on statistics and configuration. It helps reason about execution strategy but does not by itself execute and time the query.
Hard: Snapshots
At PostgreSQL Read Committed, can two SELECT statements in one transaction see different committed data?
Yes, each statement can take a new snapshot
No, every transaction always uses one fixed snapshot
Only if SELECT uses a primary key
Only after changing the table name
Show answer and explanation
Yes, each statement can take a new snapshot
Read Committed gives each statement a view of data committed before that statement begins. Another transaction can commit between two statements in the same transaction.
Very advanced: Serializable retries
What must an application be prepared to do after a serialization failure?
Retry the complete transaction with its decision logic and suitable retry handling
Retry only COMMIT indefinitely
Assume the database partially committed the transaction
Disable every constraint
Show answer and explanation
Retry the complete transaction with its decision logic and suitable retry handling
The failed attempt may have made decisions from a snapshot that cannot be serialized. Re-run the unit of work, and account for external side effects so retries do not duplicate them.