A company is migrating an on-premises PostgreSQL database to Amazon RDS for PostgreSQL. The database is 2 TB in size and has a high write workload. The company needs to minimize downtime during the migration. Which AWS service or feature should the company use to achieve this?
Trap 1: Use pg_dump and pg_restore to export and import the database.
pg_dump/pg_restore requires the source database to be read-only during the dump, causing downtime.
Trap 2: Use the AWS Schema Conversion Tool (AWS SCT) to convert the schema…
AWS SCT is primarily for schema conversion, not for minimizing downtime during data migration.
Trap 3: Use AWS DataSync to replicate the database files.
AWS DataSync is designed for file-based data transfers, not for live database migration with minimal downtime.
- A
Use pg_dump and pg_restore to export and import the database.
Why wrong: pg_dump/pg_restore requires the source database to be read-only during the dump, causing downtime.
- B
Use AWS Database Migration Service (AWS DMS) with ongoing replication.
AWS DMS supports ongoing replication via change data capture, minimizing downtime.
- C
Use the AWS Schema Conversion Tool (AWS SCT) to convert the schema and migrate data.
Why wrong: AWS SCT is primarily for schema conversion, not for minimizing downtime during data migration.
- D
Use AWS DataSync to replicate the database files.
Why wrong: AWS DataSync is designed for file-based data transfers, not for live database migration with minimal downtime.