A company is planning to migrate a highly transactional Microsoft SQL Server database located on-premises to an Amazon Aurora PostgreSQL-Compatible Edition DB cluster. The migration must be completed with minimal downtime. The source database includes several tables that do not have primary keys, as well as multiple tables containing PDF documents stored in `VARBINARY(MAX)` columns. The solutions architect is designing the replication strategy using AWS Database Migration Service (DMS) and schema conversion using the AWS Schema Conversion Tool (SCT). Which combination of actions should the solutions architect take to meet these requirements? (Select two.)
- Enable MS-CDC on the source SQL Server database and the tables without primary keys, and ensure the SQL Server Agent is running on the source database server.Answer
- Create two separate AWS DMS replication tasks: one for tables containing `VARBINARY(MAX)` columns configured with Limited LOB mode and a defined maximum LOB size, and another task for the remaining tables.Answer
- CEnable MS-Replication on the source SQL Server database to capture Change Data Capture (CDC) modifications for the tables without primary keys.
- DConfigure a single AWS DMS replication task using Full LOB mode for all tables, and increase the LOB chunk size parameter to match the size of the largest PDF file.
- EInstall the AWS SCT database extraction agent on the source SQL Server instance to capture transaction log changes and stream them to the target cluster.
Answer
To perform a near-zero downtime migration of a SQL Server database containing tables without primary keys and LOB columns to Aurora PostgreSQL, enable MS-CDC on the database and tables without primary keys with SQL Server Agent running, and split the migration into two separate AWS DMS tasks: one using Limited LOB mode with a defined maximum LOB size for the tables with LOB columns, and another for the remaining tables.
The correct strategy involves enabling MS-CDC on the source SQL Server database and tables without primary keys, ensuring the SQL Server Agent is running. MS-Replication cannot support tables without primary keys. Additionally, creating two separate AWS DMS tasks—one with Limited LOB mode for tables with large LOBs and one for standard tables—prevents LOB processing bottlenecks from slowing down the entire replication stream.
Step-by-Step Solution
Key Concept
Replicating SQL Server databases with tables lacking primary keys and containing LOBs requires selecting MS-CDC over MS-Replication, and separating LOB tables into a distinct task using Limited LOB mode for performance optimization.
Estimated Time:2m 30s