A company is migrating an on-premises MySQL database to an Amazon Aurora PostgreSQL-Compatible Edition DB cluster using AWS Database Migration Service (AWS DMS) and the AWS Schema Conversion Tool (AWS SCT). The migration strategy requires a full load followed by continuous replication (Change Data Capture) to minimize application downtime. After the AWS DMS task completes the full load phase successfully, the replication task fails to capture any ongoing inserts or updates from the source MySQL database.
Which of the following database configurations must be modified on the source MySQL database to allow AWS DMS to successfully perform Change Data Capture?
- AEnable supplemental logging at the database level and configure the source database to write full image rows to the redo log.
- Configure the binary log format (binlog_format) to ROW and set the binary log retention period to a non-zero value on the source MySQL database.Cevap
- CConvert the database migration to an offline replatforming strategy using pg_dump and pg_restore directly from the source to the target DB cluster.
- DEnable Aurora Auto Scaling on the target Aurora cluster to provision additional Read Replicas to handle the replication load.
Cevap
Configure the binary log format (binlog_format) to ROW and set the binary log retention period to a non-zero value on the source MySQL database.
For AWS DMS to perform Change Data Capture (CDC) on a source MySQL database, binary logging must be enabled, the binary log format must be set to ROW, and the binlog retention period must be set to a value greater than zero. This allows the DMS replication task to read the row-level changes from the binary logs.
Adım Adım Çözüm
Anahtar Kavram
AWS DMS CDC prerequisites for MySQL source databases