PCDE Migrate data solutions Practice Question
An engineer is planning to migrate a PostgreSQL database to AlloyDB using Database Migration Service (DMS). The source database is version 13 and the target is AlloyDB. The migration must replicate ongoing changes with minimal downtime. Which source configuration is required to enable continuous change data capture (CDC) with DMS for PostgreSQL?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Set wal_level=logical and install the pglogical extension.
DMS for PostgreSQL continuous migration uses logical replication. The source must have the `pglogical` extension installed and configured, with the `wal_level` set to `logical`.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Configure streaming replication with a replication slot.
Why it's wrong here
Streaming replication is for PostgreSQL replica, not for DMS CDC.
- ✗
Enable binary logging and set binlog_format=ROW.
Why it's wrong here
Binary logging is for MySQL, not PostgreSQL.
- ✗
Set max_replication_slots=0 to disable replication conflicts.
Why it's wrong here
max_replication_slots must be >0 for logical replication.
- ✓
Set wal_level=logical and install the pglogical extension.
Why this is correct
This is the correct configuration for PostgreSQL logical replication with DMS.
Go deeper
Related to this question
About these practice questions
One of 1,446 original PCDE practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This PCDE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCDE exam.