Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Welcome to QA4Exam

Exam preparation

PostgreSQL PGCES-02 Exam Guide for the Engineer

PGCES-02 is the code of the PostgreSQL CE 8 Silver exam, part of the PostgreSQL Certified Engineer certification. You get 60 questions and 90 minutes. It is scored across 7 exam topics. 14 free practice questions with explanations are online, and each exam topic below links to the ones written for it.

PGCES-02 Exam Details

Exam Code
PGCES-02
Real Exam Questions
60
Time Limit
90 min
Free Practice Questions
14
Full Question Set
142
Exam Topics
7
Last Updated
December 3, 2026
Exam Name
PostgreSQL CE 8 Silver
Question Types
MCQs
Certification
PostgreSQL Certified Engineer
Certification Track
PostgreSQL Development

PGCES-02 Exam Topics and Weights

PostgreSQL Fundamentals

What this topic covers

Explain PostgreSQL architecture and choose suitable data types, operators, and functions. Build basic SQL queries and understand how LEFT JOIN preserves unmatched rows and how time zone values represent instants.

What does a timestamp with time zone column actually store in PostgreSQL?

It stores one absolute instant, not the offset you typed. When you insert input with an offset, PostgreSQL converts it to that instant and displays it using the session TimeZone setting. For example, 10:00 at +02 and 08:00 UTC are stored as the same moment.

2 free PGCES-02 practice questions on PostgreSQL Fundamentals

Data Definition and Manipulation

What this topic covers

Create and manage tables, indexes, views, and procedures, then insert, update, and delete data. Handle low-downtime column changes with staged backfills and use partial unique indexes to enforce rules selectively.

How can a unique partial index allow repeated values in archived rows only?

It enforces uniqueness only among rows that match its WHERE predicate. For example, a unique index on order_ref with a WHERE clause that excludes archived orders keeps current orders unique. Archived orders can keep their old references without causing a conflict.

2 free PGCES-02 practice questions on Data Definition and Manipulation

SQL Querying and Optimization

What this topic covers

Write queries using joins, aggregates, and subqueries, including LEFT JOINs that retain customers without invoices. Assess planner choices, cardinality estimates, and stale statistics when optimizing query performance.

Why would the planner pick a sequential scan even when a predicate is selective?

Stale statistics are the usual cause, because the planner then estimates the wrong number of matching rows. Run ANALYZE on the table to refresh the statistics, then check the plan again with EXPLAIN ANALYZE. An outdated estimate can make an index scan look more expensive than reading the whole table.

2 free PGCES-02 practice questions on SQL Querying and Optimization

Database Administration

What this topic covers

Manage backups, recovery, users, and database performance. Tune autovacuum with table storage parameters, investigate transactions that hold back xmin, and troubleshoot vacuum and freezing progress.

Which step comes first when old transactions may be holding back vacuum progress?

First, find the old transactions that hold back the global xmin horizon. Query pg_stat_activity and check xact_start for long-running sessions. Then check the age of the oldest database in pg_database to see how far vacuum and freezing have progressed.

2 free PGCES-02 practice questions on Database Administration

Advanced PostgreSQL Features

What this topic covers

Use triggers, functions, procedures, and extensions to extend PostgreSQL behavior. Understand how row triggers access OLD and NEW values within a transaction and when extension deployment requires superuser control.

Why does an AFTER UPDATE row trigger run inside the update's transaction?

It runs in the same transaction, so the invoice update and any insert it fires commit or roll back together. Inside the trigger function, OLD holds the row before the change and NEW holds the row after it. Use NEW to read the changed values for each affected row.

2 free PGCES-02 practice questions on Advanced PostgreSQL Features

High Availability and Disaster Recovery

What this topic covers

Plan replication, failover, and backup recovery for PostgreSQL. Prepare replication roles and physical slots before backups request them, and preserve damaged cluster files for investigation before replacement.

What must the primary have before a base backup connects to it?

The primary must allow a replication connection for a role with the REPLICATION attribute, through a pg_hba.conf rule. The physical replication slot must already exist, because the backup request names it. Check both before running pg_basebackup.

2 free PGCES-02 practice questions on High Availability and Disaster Recovery

Security

What this topic covers

Control access through authentication, authorization, encryption, and auditing. Use views to expose selected columns while blocking direct table access, and configure scoped MD5 authentication rules in pg_hba.conf.

Why revoke SELECT on the base table when a view exposes only some columns?

Without the revoke, the role can query the base table directly and see every column, which bypasses the view. Grant SELECT on the view only, so the restriction holds. The view then becomes the single approved access path for that role.

2 free PGCES-02 practice questions on Security

Related Exams

Continue to Free PGCES-02 Exam Questions