Free PostgreSQL-Essentials Practice Test Questions and Answers (2026)
Last Update Check
Q: 1
You want to export the emp table to a CSV file with column headers using the COPY command.
Which command should you use?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 2
Which PostgreSQL backup utility can create backups in custom compressed format?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 3
Which configuration parameter controls the amount of memory allocated for shared buffers?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 4
In PostgreSQL 13, what is the difference between GENERATED ALWAYS AS IDENTITY and GENERATED
BY DEFAULT AS IDENTITY?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 5
Which parameter must be set to enable WAL archiving for Point-in-Time Recovery in PostgreSQL 13?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 6
Which pg_dump option creates a backup that can be restored using pg_restore?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 7
You need to configure your server to accept TCP/IP connections from specific IP addresses. Which file
should you modify?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 8
What is the purpose of shared_buffers configuration parameter in PostgreSQL?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 9
In PostgreSQL 13, which command is used to switch your connection to a different database in psql?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 10
You want to create a backup of all databases in a PostgreSQL cluster. Which utility should you use?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 11
You need to take a backup of only the edbuser schema from the edbstore database. Which pg_dump
option should you use?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 12
Which psql meta-command is used to list all databases in the cluster?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 13
You want to check the current value of the max_connections parameter. Which SQL command should
you use?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 14
You want to list all schemas in the current database using psql. Which command should you use?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 15
Which psql meta-command is used to describe a table including its structure, columns, and
constraints?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Question 1 of 20