Study guide · Flashcards and memory notes

PostgreSQL Certified Associate flashcards

45 recall cards for EDB Essentials for PostgreSQL v18 across ten decks: architecture through streaming replication.

EDB10 decks · 45 cardsNo sign-up required

How to use these cards: Say the object or control out loud before you flip the card, and mark it honestly. Revisit the cards you missed tomorrow rather than rereading them right away. Progress is kept only while this page is open. For the full explanations, see the core notes.

Study mode

Choose a deck, flip each card, and mark what you already know.

All flashcards

Select a question to reveal its answer.

Deck 1 · Architecture

Process model and install.

5 cards
1.1Official exam name now?

EDB Essentials for PostgreSQL (v18 on this path). Older branding said PostgreSQL Associate.

1.2shared_buffers caches?

Table and index pages in shared memory.

1.3WAL is for?

Crash recovery and (when archived) PITR.

1.4PGDATA is?

The cluster data directory on disk.

1.5Fix install permission failures how?

OS ownership for the postgres user on PGDATA—not SQL GRANTs.

Deck 2 · Clusters

initdb, conf, hba.

5 cards
2.1initdb creates?

A new database cluster (data directory).

2.2Cluster vs database?

One cluster holds many databases under one postmaster.

2.3pg_hba.conf controls?

Who may connect how (host, db, user, method).

2.4shared_buffers change needs?

Usually a server restart, not only reload.

2.5listen_addresses and port control?

Which interfaces and TCP port accept connections.

Deck 3 · Tools

psql and catalogs.

4 cards
3.1List tables in psql?

\dt (and related \d variants).

3.2Core catalogs live in?

pg_catalog.

3.3Portable metadata views?

information_schema.

3.4Switch database in psql?

\c / \connect.

Deck 4 · Databases

Schemas and objects.

5 cards
4.1CREATE DATABASE does?

Adds a database inside the cluster.

4.2Schema is?

A namespace inside a database.

4.3Tablespace controls?

Filesystem location of selected objects.

4.4Template1 used for?

Default clone source for CREATE DATABASE.

4.5search_path should be set where for reliability?

Role/database defaults or app connection options.

Deck 5 · Security

Roles and grants.

4 cards
5.1LOGIN attribute means?

The role can authenticate as a user.

5.2Least privilege means?

Only needed statements on needed objects.

5.3Preferred password method?

scram-sha-256.

5.4trust auth risk?

No password when the hba rule matches—dangerous if exposed.

Deck 6 · Monitoring

Sessions and stats.

4 cards
6.1Session list view?

pg_stat_activity.

6.2Kill a backend with?

pg_terminate_backend(pid).

6.3Watch connections against?

max_connections (and poolers).

6.4Idle in transaction problem?

Holds locks/snapshots for hours.

Deck 7 · SQL

Queries and txns.

5 cards
7.1Test nulls with?

IS NULL / IS NOT NULL—not = NULL.

7.2After SQL error in a txn?

ROLLBACK (transaction is aborted).

7.3INNER JOIN keeps?

Matching rows from both sides.

7.4LEFT JOIN keeps?

All left rows, NULLs when right misses.

7.5RETURNING on INSERT gives?

Values from the inserted rows in one statement.

Deck 8 · Backup

Dump and PITR.

4 cards
8.1pg_dump is?

Logical backup of database contents.

8.2Base backup is?

Physical copy of PGDATA (e.g. pg_basebackup).

8.3PITR needs?

Base backup + continuous WAL archive.

8.4Green backup job proves?

Only that a job ran—restore tests prove usability.

Deck 9 · Maintenance

Vacuum and COPY.

4 cards
9.1VACUUM reclaims?

Dead tuple space for reuse.

9.2ANALYZE updates?

Planner statistics.

9.3Autovacuum is?

Background vacuum/analyze.

9.4Bulk load command?

COPY (or psql \copy).

Deck 10 · Replication

Streaming and HA.

5 cards
10.1Writes go where in streaming?

To the primary.

10.2Lag measures?

How far the standby trails.

10.3HA vs backup?

HA keeps service up; backups restore lost/corrupt data.

10.4Stale replication slot risk?

WAL piles up and can fill disk.

10.5Promote after DROP TABLE?

Keeps the DROP if it replicated—use backup/delayed replica to undo.

Continue the PostgreSQL study path

The overview, core notes, flashcards, and practice exams are all published.

PostgreSQL hub →
Available

Overview

Exam format, the ten study groups, and a lab plan.

Available

Core Notes

Reference notes for architecture through streaming replication.

Available · You are here

Flashcards & Memory Notes

45 recall cards in ten decks across the study groups.

Available

Practice Exams

200 original questions across the ten study groups.

Official exam sources

Card facts follow the EDB Certification Exams Catalog and the EDB Essentials for PostgreSQL data sheet. Method behavior is in the PostgreSQL documentation. These cards are independent recall prompts, not official exam items.

Apply concepts in the Scenario Workshop →