A company is planning to migrate its on-premises Microsoft SQL Server database to an Amazon Aurora MySQL-Compatible Edition DB cluster. The migration must occur with minimal downtime, requiring continuous data replication via Change Data Capture (CDC). The source database contains tables with complex foreign key constraints, and several columns contain VARCHAR(MAX) data with sizes up to 128 KB. A Solutions Architect will use the AWS Schema Conversion Tool (SCT) to convert the schema and AWS Database Migration Service (DMS) for the data migration.
Which of the following actions should the Solutions Architect take to ensure a successful and optimized migration? (Select two.)
- Configure the target Amazon Aurora MySQL endpoint in AWS DMS with the extra connection attribute AfterConnectScript=SET foreign_key_checks=0;Cevap
- Configure the AWS DMS replication task to use Limited LOB mode and set the Max LOB size parameter to 128 KB.Cevap
- CEnable Change Data Capture (CDC) on the source SQL Server database, and ensure that the SQL Server Agent service is stopped to release locks on the active transaction log.
- DConfigure the AWS DMS replication task to use Full LOB mode with a LOB chunk size of 128 KB to optimize data transfer for the VARCHAR(MAX) columns.
- EInstall and apply the AWS SCT extension pack directly on the source Microsoft SQL Server database to emulate MySQL-compatible SQL functions.
Cevap
To ensure a successful and optimized migration, the Solutions Architect should configure the target Amazon Aurora MySQL endpoint in AWS DMS with the extra connection attribute AfterConnectScript=SET foreign_key_checks=0; to disable foreign key checks during migration, and configure the AWS DMS replication task to use Limited LOB mode with the Max LOB size parameter set to 128 KB.
Disabling foreign key constraints on the target database during the migration prevents referential integrity violations during parallel table loads. Using Limited LOB mode with the Max LOB size set to 128 KB ensures LOB data is transferred inline with the rest of the row data without being truncated, providing optimal performance.
Adım Adım Çözüm
Anahtar Kavram
Optimizing heterogeneous migrations with AWS DMS using custom target endpoint connection attributes and LOB mode settings.