A retail company is planning to migrate its self-managed MySQL database running on an on-premises server to an Amazon Aurora PostgreSQL-Compatible Edition DB cluster. The solutions architect needs to configure the source MySQL database to support ongoing replication (Change Data Capture) using AWS Database Migration Service (DMS). Which configurations must be applied to the source MySQL database to enable AWS DMS CDC? (Select two.)
- Enable binary logging on the source MySQL instance by setting the log_bin configuration parameter.Answer
- Set the binlog_format parameter to ROW to record row-level changes.Answer
- CEnable supplemental logging at the database level and table level for all replicated tables.
- DSet the wal_level parameter to logical and create a logical replication slot.
- EEnsure the SQL Server Agent service is running and configure the database for the Full Recovery model.
Answer
The correct configurations are to enable binary logging on the source MySQL instance by setting the log_bin parameter, and to set the binlog_format parameter to ROW.
To support Change Data Capture (CDC) from a MySQL source database, AWS Database Migration Service (DMS) reads the MySQL binary logs. Therefore, binary logging must be enabled on the source database using the log_bin parameter. Additionally, the binary log format (binlog_format) must be set to ROW to ensure that row-level modifications are written to the binary logs in a structured format that AWS DMS can interpret.
Step-by-Step Solution
Key Concept
Configuring source database log settings (such as binary logs for MySQL) is a mandatory prerequisite for AWS DMS to perform Change Data Capture (CDC) replication.