EnterpriseDB PostgreSQL-Essentials Exam Questions & Answers (November 2026)
PostgreSQL Essentials Certification v13 exam questions with 24 free practice questions and explained answers. Updated November 29, 2026. ยท See all EnterpriseDB exams
Answer 24 scenario questions on this page and see your score as you go. No sign-up needed.
Exam Details
- Exam Code
- PostgreSQL-Essentials
- Vendor
- EnterpriseDB
- Questions
- 50
- Duration (minutes)
- 60
- Question Types
- Single Choice
- Official Page
- View Exam Page
Backup and Recovery Strategies
This topic covers logical and physical backup methods and the recovery choices they support. Candidates must select suitable backups for specific data recovery needs and account for which database objects and global definitions each method preserves.
An accounting team needs a recoverable copy of its invoices table for testing. Its PostgreSQL 13 database remains online during the backup, and the team wants to restore that table into an existing test database without replacing other test data. The team also needs a format that supports selecting individual objects during restore.
Which backup and restore plan best meets the requirement?
Show Answer
Correct Answer
A
Option A is correct because the custom archive can be inspected and selectively restored with pg_restore, matching the request to recover only the invoices table into the test database. Option B creates a physical cluster backup, not a table-level archive. Option C uses plain SQL output, which pg_restore cannot process. Option D exports global objects but not the database's table data.
A company is moving one PostgreSQL 13 application database named appdb to a newly built cluster. The team will use logical backups and must preserve existing role ownership and object privileges. It does not want to restore the other databases from the source cluster, and the destination cluster currently has none of the application's login roles.
Which backup plan should the administrator use?
Show Answer
Correct Answer
A
Option A is correct because the global-objects script preserves role definitions, while the separate archive contains appdb and can be restored after those roles exist. Option B restores databases beyond the requested scope. Option C does not include role definitions. Option D exports global objects but contains no application database tables or rows.
Configuration Parameters
This topic covers PostgreSQL settings that affect server behavior, resource use, and query planning. Candidates must interpret parameter scope and apply changes with the correct expectations about reloads, restarts, and memory allocation.
A PostgreSQL 13 server has max_connections set to 100 and log_min_duration_statement set to 1000 milliseconds. The administrator uses ALTER SYSTEM to change the connection limit to 180 and the logging threshold to 750 milliseconds. The server is serving applications, and the administrator wants to apply changes without interrupting active sessions.
After the administrator calls pg_reload_conf, which outcome should be expected?
Show Answer
Correct Answer
B
Option B is correct because log_min_duration_statement can be reloaded, while max_connections requires a server restart. Option A is not correct because max_connections has postmaster context and cannot take effect from a reload. Option C reverses the parameters' behavior. Option D is not correct because the reload is sufficient for the logging threshold.
A PostgreSQL 13 reporting server has 80 application connections and work_mem set to 64 MB. A reporting query can perform several sorts and hash operations, and the execution plan may use parallel workers. The operations team assumes that 64 MB is a hard total memory limit for each query and wants to know whether that assumption is safe before raising the setting.
Which conclusion about the proposed work_mem setting is most accurate?
Show Answer
Correct Answer
C
Option C is correct because the 64 MB limit applies to individual sort and hash operations, and parallel workers can use memory for their own operations. Option A is not correct because work_mem is not a total per-query limit. Option B is not correct because this memory is not reserved for every connection. Option D is not correct because work_mem is not a shared server-wide pool.
A PostgreSQL 13 server runs on a host with 24 GB of RAM. The database administrator has set shared_buffers to 4 GB and is reviewing query plans that favor sequential scans despite frequent access to a subset of tables. A colleague proposes setting effective_cache_size to 6 GB and claims that PostgreSQL will then reserve that amount of RAM for cached database pages.
Which statement best describes the effect of setting effective_cache_size to 6 GB?
Show Answer
Correct Answer
B
Option B is correct because effective_cache_size is a planner estimate, and changing it does not reserve memory on this server. Option A is not correct because the setting does not allocate query memory. Option C is not correct because shared_buffers is a separate parameter. Option D is not correct because the estimate does not control or guarantee operating system caching.
Creating and Managing Databases
This topic covers creating databases with appropriate templates and locale settings, as well as carrying out database-level changes. Candidates must select creation options that satisfy application requirements and plan changes around PostgreSQL's operational restrictions.
A development team is creating an empty PostgreSQL 13 database for an application that must use UTF8 and a locale different from the cluster default. The team does not need any objects from the existing template1 database. The required operating-system locale is installed, and the administrator wants to create the database with the correct settings in one operation.
Which approach should the administrator use to create the database?
Show Answer
Correct Answer
B
Option B is correct because the team needs locale settings that differ from template1, and template0 allows the requested encoding and locale to be specified during creation. Option A can fail because template1 has its own locale and encoding restrictions. Option C is not correct because PostgreSQL does not support changing a database's encoding or locale after creation. Option D does not set the required values.
A release team must rename the production database from orders_live to orders_legacy during a controlled cutover. The application pool currently maintains persistent sessions, and monitoring tools also connect directly to orders_live. The change window allows the team to stop traffic briefly, but the database must remain available through a separate administrative connection.
What should the release team do before renaming the database?
Show Answer
Correct Answer
B
Option B is correct because PostgreSQL cannot rename a database while sessions are connected to it, and the command must run from another database. Option A fails because the administrator is connected to the target. Option C ignores the active-session restriction. Option D does not resolve that restriction, and changing the encoding after creation is not supported.
Database Clusters
This topic covers how PostgreSQL nodes synchronize data and provide read capacity and fault tolerance. Candidates must choose replication arrangements and cluster topologies that fit application consistency, workload, and network requirements.
A payment service runs on a PostgreSQL 13 primary with two standby servers in the same data center. The service owner requires a transaction acknowledgment to wait until its WAL has been flushed on at least one standby. A separate analytics team runs read-only reports and accepts a short replication delay. Network latency is low, but the service must avoid adding report-related delays to payment commits.
Which replication arrangement best meets these requirements?
Show Answer
Correct Answer
B
Option B is correct because the payment standby can confirm that transaction WAL has been flushed before acknowledgment, while the analytics standby does not add commit latency. Option A cannot provide the requested payment durability. Option C makes transactions wait for both standbys. Option D uses logical replication, which does not provide the same physical standby arrangement.
A reporting team runs many read-only queries against a PostgreSQL 13 database during business hours. The primary also handles latency-sensitive order writes, and the reports can use data that is several seconds behind. The organization has a separate server available for reporting, but it does not want reporting activity to hold up write acknowledgments or permit application writes on the reporting server.
Which cluster design best satisfies the reporting and transaction-latency requirements?
Show Answer
Correct Answer
A
Option A is correct because a hot standby can serve read-only reports, and asynchronous streaming avoids making the primary wait for the reporting server. Option B adds a synchronous acknowledgment dependency that the latency requirement does not need. Option C is incorrect because hot standbys can accept read-only queries. Option D cannot safely accept independent writes on both servers through logical replication.
A company operates a PostgreSQL 13 primary and two local physical standbys at its main site. It plans to add a physical standby at a remote office, but the WAN link has limited capacity and should carry as few direct streams from the primary as possible. A local standby has sufficient network capacity to forward WAL, and the remote server must maintain a physical copy of the cluster rather than only selected tables.
Which topology best reduces the number of direct WAN replication streams from the primary?
Show Answer
Correct Answer
B
Option B is correct because cascading physical replication lets the nearby standby forward WAL to the remote standby, reducing direct streams across the WAN. Option A still sends a separate stream from the primary for each standby. Option C is not a supported way to run two PostgreSQL servers on the same database files. Option D replicates selected logical data rather than the complete physical cluster state.
Database Maintenance
This topic covers routine work that keeps PostgreSQL tables, indexes, and planner statistics usable as data changes. Candidates must choose maintenance operations that address space reuse, index growth, and stale statistics while respecting workload availability.
An order-processing database has completed a retention job that deleted 35 percent of the rows from a large table. The application continues to read and insert into that table throughout the day, and the operations team can tolerate routine maintenance but not an operation that blocks table access. The goal is to make dead-tuple space available for reuse and refresh estimates after the deletion.
Which maintenance operation best meets the team's requirements?
Show Answer
Correct Answer
B
Option B is correct because VACUUM (ANALYZE) makes dead-tuple space reusable without taking the table-level lock required by VACUUM FULL, and it refreshes planner statistics after the deletion. Option A blocks access while rewriting the table. Option C only refreshes statistics, and Option D rewrites the table with a restrictive lock.
A reporting system uses a large table that receives frequent updates. Monitoring shows that one of its indexes has grown disproportionately, but there is no evidence of index corruption. Reads and writes must continue during maintenance, and the server has enough free disk space for a replacement index. The DBA can run the maintenance command outside a transaction block.
Which action should the DBA take to rebuild the index while meeting the availability requirement?
Show Answer
Correct Answer
C
Option C is correct because REINDEX INDEX CONCURRENTLY rebuilds the named index while allowing normal table reads and writes, and the scenario provides disk headroom for the replacement. Option A takes a stronger lock that blocks writes. Option B rewrites the table and also restricts access. Option D updates planner statistics but does not rebuild the index.
A customer-support table receives a bulk update that changes the values in a column used by several common filters. Queries that previously used selective index scans now receive poor plans. The update affected fewer rows than the table's configured automatic-analyze threshold, and the team needs a direct maintenance action before the next reporting run. Index health is normal.
Which maintenance operation is the most direct way to refresh the planner's statistics for this table?
Show Answer
Correct Answer
A
Option A is correct because ANALYZE collects fresh column statistics after the data distribution changed, giving the planner updated information for its estimates. Option B removes dead tuples but does not guarantee an immediate statistics refresh. Option C rebuilds indexes without refreshing column statistics. Option D changes the target but does not collect new statistics until ANALYZE runs.
Database Objects and Hierarchy
Database objects are organized within schemas, and some objects depend on or are arranged beneath other objects. Candidates must identify these relationships, distinguish objects with the same name, and reason about how object changes affect related objects.
A reporting team stores regional orders in a PostgreSQL 13 partitioned table named orders, with separate existing partitions for the east and west regions. Analysts query the parent table rather than naming partitions directly. They need an index on order_date and want PostgreSQL to maintain the index structure across the existing partition hierarchy. The team has enough disk space and does not require a separate index design for each region.
Which statement should the team rely on when planning the index hierarchy?
Show Answer
Correct Answer
A
Option A is correct because PostgreSQL 13 creates a partitioned index on the parent and matching indexes for the existing partitions. Option B is not correct because the parent index has no storage of its own. Option C is not correct because PostgreSQL supports indexes on partitioned tables. Option D is not correct because index propagation follows the partition hierarchy, not matching column names.
An application team maintains a sales schema and an archive schema in the same PostgreSQL database. Each contains a table named orders, and both tables are still needed. A reporting job must read only the current sales data. The team cannot depend on the session search_path because the job runs through a connection pool whose sessions may have different search_path values.
Which approach lets the application unambiguously refer to the intended orders table without changing search_path?
Show Answer
Correct Answer
A
Option A is correct because the schema-qualified name sales.orders identifies the intended relation directly. Option B is not correct because PostgreSQL does not choose a relation by row count. Option C is not correct because schemas contain objects such as tables, not the reverse. Option D is not correct because separate schemas can contain relations with the same name.
A finance team has a regular view named monthly_totals in the reporting schema. The view reads from a source table named transactions in the staging schema. The team plans to move transactions to the archive schema to align it with a new object layout. The view must remain available under its current name, and the team wants to know whether the move itself breaks the view's relation to its source.
What should the team expect after moving the source table to the archive schema?
Show Answer
Correct Answer
A
Option A is correct because the view dependency remains tied to the referenced table when that table changes schema. Option B is not correct because PostgreSQL tracks the underlying relation dependency rather than resolving the original name anew for every query. Option C is not correct because moving a table does not move dependent views. Option D is not correct because a regular view does not store a copy of its rows.
Database Security
This topic covers PostgreSQL authentication, encryption, and access control. Candidates must select security settings and privileges that protect data while meeting defined access requirements.
A PostgreSQL 13 reporting service needs read access to one table containing approved monthly totals. Its login role already has CONNECT on the database and USAGE on the table's schema, but it has no table privileges. Administrators want to manage access through a reusable group role, and the service must not gain access to other tables in the schema.
Which role design grants the reporting service only the required table access?
Show Answer
Correct Answer
A
Option A is correct because the login role already has database connection and schema usage, so table-level SELECT through a group role grants exactly the required access. Option B is not correct because it exposes every table in the schema. Option C is not correct because PUBLIC includes all database roles. Option D is not correct because ownership grants more authority than read access.
A PostgreSQL 13 application stores several customers' records in one table, and an existing row-level security policy filters rows by the tenant identifier in the session. The policy is enabled, and the application role is not the table owner. A scheduled audit query runs as the table owner, who is neither a superuser nor a role with BYPASSRLS. The audit must observe the same tenant policy as the application.
Which change meets the requirement for the scheduled query?
Show Answer
Correct Answer
A
Option A is correct because FORCE ROW LEVEL SECURITY makes the table owner obey the existing tenant policy during the scheduled query. Option B is not correct because row security is already enabled, and ordinary enablement still exempts the owner. Option C is not correct because BYPASSRLS would exempt the job from the policy. Option D is not correct because a superuser bypasses row security.
A PostgreSQL 13 application uses libpq to connect to a server over a network that the organization does not control. The server has a certificate issued by the organization's trusted CA, and the application connects by the DNS name listed in that certificate. The current sslmode is require. Security policy requires encryption and validation that the client reached the intended server, with no fallback to an unencrypted connection.
Which libpq connection setting best meets the security requirement?
Show Answer
Correct Answer
C
Option C is correct because verify-full encrypts the connection, checks the certificate chain against the configured CA certificate, and verifies the server hostname. Option A is not correct because require does not provide reliable hostname verification. Option B is not correct because verify-ca checks the chain but not the hostname. Option D is not correct because prefer can fall back to an unencrypted connection.
Disaster Recovery
This topic covers planning and carrying out service continuity when a PostgreSQL site or server becomes unavailable. Candidates must choose safe failover actions, meet recovery objectives, and restore application access without creating conflicting database service.
A payment service runs on PostgreSQL 13 at a primary site and has a physical standby at a second site. The business permits no more than 60 seconds of data loss and requires service within 10 minutes. The primary site has lost network connectivity, and monitoring shows the standby is 45 seconds behind, but operators cannot yet confirm whether the primary server is still powered on.
What should the incident lead do next?
Show Answer
Correct Answer
B
Option B is correct because fencing the unreachable primary prevents it from continuing to accept writes, and the standby's 45-second lag is within the stated recovery point objective before promotion. Option A risks split-brain by promoting without proving the primary cannot write. Option C misses the recovery time objective. Option D leaves the standby read-only.
During a planned disaster recovery exercise, the team promotes the PostgreSQL 13 standby at the secondary site. Applications connect through a TCP load balancer whose backend still points to the primary site. DNS has a one-hour cache lifetime, and application servers use pooled database connections. The recovery objective is to restore tested write service within 15 minutes.
Which cutover plan best meets the recovery objective?
Show Answer
Correct Answer
A
Option A is correct because promotion makes the standby writable, and changing the load balancer backend plus recycling pooled sessions directs new work to it. A test write checks service readiness before full traffic returns. Option B is unreliable because DNS caching and existing pools can retain the old destination. Option C targets a read-only standby. Option D leaves clients pointed at the failed site.
Fundamental SQL
This topic covers writing SQL queries, combining related data, and changing table rows. Candidates must choose query conditions and joins that return or modify exactly the required data.
A sales team is preparing a monthly customer report from a PostgreSQL database. The customers table contains every active customer, while the orders table contains only placed orders. The report must include customers with no orders in January, show zero for their order count, and exclude orders placed outside January. The report groups the results by customer.
A sales application must display every customer, including customers who placed no orders during a selected period. The application also needs the number of matching orders for each customer. Which query meets these requirements?
Show Answer
Correct Answer
A
Option A is correct because the date condition is part of the join, so customers without matching orders remain in the result, and COUNT of the order identifier returns zero for them. Option B removes customers without orders through its inner join. Option C filters out unmatched rows in the WHERE clause. Option D counts the preserved customer row as one.
A background processing service uses a jobs table with status and processed_at columns. A maintenance script must move jobs from queued to ready so another worker can claim them. Some queued jobs have already been processed and have a timestamp, while some jobs in other statuses have no timestamp. The script must change neither of those groups.
Which statement updates only queued jobs that have not yet been processed?
Show Answer
Correct Answer
A
Option A is correct because it requires both the queued status and a null processing timestamp. Option B also changes rows that are not queued if their timestamp is null. Option C uses equality with NULL, which does not test for a null value in SQL. Option D selects jobs that already have a processing timestamp.
A finance analyst is reviewing an orders table with customer_id, status, created_at, and total_amount columns. The report should include only completed orders placed in the first quarter of 2025. A customer qualifies only when at least three such orders exist and their combined total exceeds 500. The analyst needs one result row per qualifying customer.
Which query returns customers with at least three completed orders in the first quarter of 2025 and a combined order total greater than 500?
Show Answer
Correct Answer
A
Option A is correct because it filters qualifying orders before grouping, then applies both aggregate requirements to each customer group. Option B excludes customers with exactly three orders. Option C removes orders of 500 or less before calculating the count and sum. Option D includes groups that meet only one of the two required aggregate conditions.
Continue Your PostgreSQL-Essentials Preparation
You have seen 24 questions from a full set of 71. Prepare with the PostgreSQL-Essentials dumps PDF and the Web-Based Practice Test.
- Compatible with All Devices
- Printable Format
- No Download Limits
Practice Test
- Check your timing and weak areas
- No Practice Limits
- Regularly Updated
- 100% Money-Back Guarantee
- 90 Days Free Updates
- Instant Access
Frequently Asked Questions
Why can backup and recovery questions on PostgreSQL-Essentials be difficult?
The challenge is matching a backup method to the recovery need, rather than recalling a method in isolation. The exam covers logical and physical backups and asks candidates to account for the database objects and global definitions each preserves. A sound answer must fit the required recovery outcome. As you study, make a comparison table of backup methods, what they preserve, and the situations in which each supports recovery.
What makes PostgreSQL configuration questions demanding under the 60-minute limit?
Configuration questions can require you to interpret a parameter's scope, understand its effect on server behavior or query planning, and decide whether a change needs a reload or restart. Memory allocation adds another practical consideration. With 50 questions in 60 minutes, lengthy deliberation on one setting can affect your pace. Practise explaining the expected effect and activation requirements for each setting you review, then move on when you have identified both.
Why does studying PostgreSQL settings from definitions alone often fall short?
Knowing a parameter's description does not always prepare you to choose an operationally safe change. This exam connects configuration scope and resource use with reloads, restarts, memory allocation, and query planning. The Exam4Success PDF can help you review those distinctions away from a lab. Turn each setting into a short decision note that records its scope, expected effect, and whether it requires a reload or restart.
Why do SQL and database-object questions catch prepared candidates off guard?
A query may look plausible while returning or modifying more rows than required. The exam tests conditions and joins in relation to an exact data requirement, and it also covers schemas, object names, and dependencies. These areas reward careful reading more than memorized syntax. The Exam4Success Practice Test can help reveal whether your errors come from query logic or object relationships. After each practice question, explain why the selected rows and affected objects meet the stated need.
What practical PostgreSQL skills does this certification represent?
PostgreSQL Essentials Certification v13 focuses on foundational administration and SQL decisions, including database creation, security, maintenance, configuration, backup, recovery, and replication. It is relevant to candidates who want to show they can reason about routine PostgreSQL responsibilities, not just write queries. The topics also connect application needs with operational choices, such as selecting database locale settings or privileges. Use the topic list to identify which of these responsibilities you can already explain and which need more practice.
How can the database-cluster topics support a PostgreSQL administrator's work?
The cluster material addresses how nodes synchronize data and provide read capacity and fault tolerance. Candidates must match replication arrangements and topologies to consistency, workload, and network requirements. These are useful foundations for discussing how a PostgreSQL service should respond to changing demand or a node failure. To make the topic practical, compare a few application requirements and state which consistency, read-capacity, and fault-tolerance needs should guide the topology choice.
How should I decide whether I am ready for the 50-question exam?
Readiness is less about finishing a study guide than making accurate choices across the full topic range. The exam allows 60 minutes for 50 questions, so you should also be able to work at a steady pace. Use the Exam4Success Practice Test to check timing and identify weak areas, then revisit the relevant topics rather than repeating material you already know. A useful readiness check is whether you can explain your choices in SQL, recovery, security, and maintenance scenarios.
What should I study first if I have limited preparation time?
Start by mapping your current knowledge against all nine official topic areas, then give extra time to subjects where you cannot explain the decision behind an answer. For example, review database creation options alongside operational restrictions, and compare maintenance choices in terms of space reuse, index growth, statistics, and availability. The Exam4Success PDF is useful for focused review away from a lab. Finish each study session by writing down one unresolved decision to revisit.
Exam4Success is an independent exam preparation provider and is not affiliated with or endorsed by EnterpriseDB.