A solutions architect is planning the migration of an on-premises IBM Db2 database to an Amazon Aurora PostgreSQL-Compatible Edition database cluster. The architect has already converted the schema using the AWS Schema Conversion Tool (SCT) and applied it to the target database, which includes custom indexes, triggers, and foreign keys. The architect is now configuring an AWS Database Migration Service (DMS) replication task to perform a full load followed by continuous replication using Change Data Capture (CDC). Which combination of DMS task configuration and source database settings must the architect apply to ensure the SCT-converted schema is preserved and CDC functions correctly?
- Configure the DMS task target table preparation mode to 'Truncate', enable database-level archive logging on the source Db2 database, and enable data capture changes for the tables selected for replication.Answer
- BConfigure the DMS task target table preparation mode to 'Drop tables on target', and rely on AWS DMS to automatically recreate the table structures and indexes during the full load phase.
- CConfigure the DMS task target table preparation mode to 'Truncate', and use the default Db2 circular logging configuration to allow AWS DMS to read change logs without enabling additional table-level attributes.
- DConfigure the DMS task target table preparation mode to 'Do nothing', and classify the migration as a Replatforming strategy where DMS dynamically translates incompatible Db2 SQL queries during the CDC replication phase.
Answer
Configure the DMS task target table preparation mode to 'Truncate', enable database-level archive logging on the source Db2 database, and enable data capture changes for the tables selected for replication.
Selecting the 'Truncate' option for target table preparation clears the data from the target tables while keeping the pre-created schema structures, indexes, constraints, and triggers intact. For ongoing CDC replication from an IBM Db2 database, archive logging must be enabled (circular logging is insufficient for CDC) and the 'DATA CAPTURE CHANGES' attribute must be enabled on the source tables to allow AWS DMS to capture data changes.
Step-by-Step Solution
Key Concept
Database Migration and Schema Conversion using DMS and SCT
Estimated Time:2m 0s