A company is migrating an on-premises PostgreSQL database to Amazon RDS for PostgreSQL. They need to minimize downtime and ensure data consistency. Which TWO methods can be used together to achieve this?
DMS can replicate data continuously.
Why this answer
AWS DMS with full load and Change Data Capture (CDC) enables a zero-downtime migration by first copying the existing data (full load) and then continuously replicating ongoing changes from the on-premises PostgreSQL source to the Amazon RDS for PostgreSQL target. This ensures data consistency because CDC captures transactions in near real-time using the PostgreSQL logical replication slot mechanism, allowing the target to stay synchronized until the cutover.
Exam trap
The trap here is that candidates often think pg_dump/restore (Option B) is sufficient for minimal downtime, but they overlook that it requires a consistent snapshot and cannot capture ongoing changes, whereas the correct answer combines a full load with CDC to achieve near-zero downtime.