A company is migrating a production MySQL database running on an on-premises physical server to an Amazon Aurora PostgreSQL-Compatible Edition DB cluster. The migration must be completed with minimal downtime. A Solutions Architect plans to use the AWS Schema Conversion Tool (AWS SCT) and the AWS Database Migration Service (AWS DMS) with Change Data Capture (CDC). Which of the following actions must the Solutions Architect perform to ensure a successful migration with ongoing replication? (Select TWO.)
- Run the AWS Schema Conversion Tool (AWS SCT) to convert the MySQL database schema to PostgreSQL, apply the generated schema DDL to the target Aurora DB cluster, and then initiate the AWS DMS replication task.Cevap
- Enable binary logging on the source MySQL database, configure the binlog format to ROW, set the binlog retention period to at least 24 hours, and restart the database service before starting the AWS DMS task.Cevap
- CConfigure the AWS DMS replication task with default settings to automatically convert MySQL-specific stored procedures, triggers, and secondary indexes on-the-fly during the data migration.
- DStart the AWS DMS task with CDC enabled without altering the source MySQL configuration, relying on AWS DMS to automatically enable supplemental logging on the source database engine.
- EConfigure the AWS DMS source endpoint to run in full load and CDC mode using the default AWS-managed KMS key aws/rds to encrypt cross-account credentials and data transit.
Cevap
The Solutions Architect must run the AWS Schema Conversion Tool (AWS SCT) to convert the MySQL database schema to PostgreSQL, apply the schema to the target Aurora DB cluster, and enable binary logging on the source MySQL database with the ROW format and adequate binlog retention before starting the AWS DMS task.
For a successful heterogeneous database migration with minimal downtime, the target schema must first be created. The AWS Schema Conversion Tool (AWS SCT) is used to convert the source schema (MySQL) to the target schema (PostgreSQL) and apply it. For ongoing replication (CDC) to function, the source MySQL database must have binary logging enabled with a format of ROW, as AWS DMS reads these binary logs to replicate changes to the target database.
Adım Adım Çözüm
Anahtar Kavram
Heterogeneous database migration requires schema conversion using AWS SCT first, followed by data replication using AWS DMS. Ongoing replication (CDC) requires appropriate transaction log configurations (like binary logging for MySQL or supplemental logging for Oracle) on the source database.