A solutions architect is planning the heterogeneous migration of a production on-premises MySQL database to an Amazon Aurora PostgreSQL-Compatible Edition DB cluster. The migration must minimize downtime, and the database experiences high write activity. The solutions architect has already run the AWS Schema Conversion Tool (SCT) to convert the database schema. To complete the migration, AWS Database Migration Service (DMS) will be used with Change Data Capture (CDC) enabled.
Which two actions must the solutions architect perform to prepare the source database and ensure successful CDC replication? (Select two.)
- Configure the MySQL configuration file on the source database to set binlog_format to ROW and binlog_row_image to FULL.Answer
- Configure the source database to retain binary logs for a minimum of 24 hours to prevent data loss before AWS DMS processes them.Answer
- CConfigure the MySQL source database to set binlog_format to STATEMENT to optimize write performance and reduce log storage size.
- DConfigure the AWS Schema Conversion Tool (SCT) data agent to capture database changes in real time and apply them to the target cluster.
- EConfigure the target Aurora PostgreSQL DB cluster to run in MySQL compatibility mode to avoid converting the database schema.
Answer
To perform successful Change Data Capture (CDC) from an on-premises MySQL database to Amazon Aurora PostgreSQL, you must set the source parameters binlog_format to ROW and binlog_row_image to FULL. Additionally, the source database must be configured to retain its binary logs for at least 24 hours to prevent replication errors.
To successfully perform Change Data Capture (CDC) from an on-premises MySQL database using AWS DMS, row-based logging must be enabled by setting the binary log format to ROW and the binary log row image to FULL. Additionally, the source database must be configured to retain these binary logs for a sufficient duration (typically at least 24 hours) to prevent the log files from being purged before AWS DMS can read and apply the changes.
Step-by-Step Solution
Key Concept
Configuring MySQL source databases for Change Data Capture (CDC) replication using AWS DMS requires setting specific binary logging configurations (ROW format and FULL row image) and ensuring binary logs are retained long enough to prevent replication failures.
Estimated Time:2m 0s