Certopolis

AWS Certified Solutions Architect – Professional

AWS DMS vs DMS Schema Conversion: full load and CDC (SAP-C03)

The AWS DMS guide says DMS Schema Conversion converts schemas and code objects, not data, and that AWS DMS tasks then move the data, once or with ongoing replication. For a different target engine, convert first, then run full load plus CDC. For the same engine, a homogeneous data migration uses native database tools.

Which part of DMS converts the schema and which moves the data?

At a basic level, AWS DMS is a server in AWS that runs replication software. You define a source and a target connection and run a task that moves the data. A task creates the target tables and their primary keys if they are missing. For indexes, views, triggers and code, the guide points to DMS Schema Conversion or to tables you create yourself.

DMS Schema Conversion works in a migration project that joins a source data provider, a target data provider and an instance profile, with database credentials held in AWS Secrets Manager. Its assessment report shows what converts automatically and what needs manual work, so you can estimate the effort before you commit. It then converts tables, views, stored procedures and functions, and you apply the converted code to the target or export it as SQL scripts.

It does not move data. It is a managed, web-based feature built on the AWS Schema Conversion Tool (AWS SCT) engine, and AWS SCT remains a downloadable alternative. Supported paths include Oracle, SQL Server, IBM Db2 for LUW and SAP ASE to Aurora PostgreSQL or RDS for PostgreSQL.

Full load plus CDC

DMS has two kinds of ongoing replication task. Full load plus CDC migrates the existing data and then keeps applying changes from the source. CDC only applies changes when the data is already on the target. The source stays in use during a long copy, and the outage at cutover only has to cover the last changes and the switch.

Change data capture (CDC) reads the source engine's transaction logs through the engine's native API. Most engines need extra setup first. Oracle needs supplemental logging and MySQL needs row-level binary logging.

CDC is not real time. AWS gives no SLA for its latency, which can reach several minutes or more depending on source load, network, replication resources and the target. Views migrate only in a full-load-only task; a task that includes CDC migrates tables only.

Homogeneous data migrations

A homogeneous data migration is for a like-to-like move, such as on-premises PostgreSQL to Aurora PostgreSQL. DMS uses the engine's native tools, runs the migration in a serverless environment and scales it for you. It migrates data plus secondary objects such as functions, stored procedures and partitions. It supports full load, ongoing replication, or both.

The limitations matter at scale. Schema-level changes during ongoing replication are captured only for MySQL. On other engines, a table created on the source after the migration starts is not migrated until you restart the data migration. There is no built-in data validation, and you cannot migrate from a higher database version to a lower one.

DMS Serverless

DMS Serverless removes replication instance sizing. You create a replication and give it a minimum and maximum number of DMS capacity units (DCUs). A DCU is 2 GB of RAM. DMS reads the source metadata, works out the capacity the workload needs within that range, provisions it, and bills for the DCUs in use.

A serverless replication has no public IP address. It must reach Amazon S3, Kinesis, AWS Secrets Manager, DynamoDB, Amazon Redshift and OpenSearch Service through VPC endpoints. It also supports fewer endpoint types than standard DMS and does not support views.

Where the exam catches people

  • Believing a DMS task converts stored procedures for a new engine: a task creates tables and primary keys. DMS Schema Conversion converts the code objects.
  • Believing DMS Schema Conversion also copies the rows: it converts the schema, not the data.
  • Believing a homogeneous data migration can move Oracle to PostgreSQL: it is for the same engine on both sides and uses that engine's native tools.
  • Believing ongoing replication in a homogeneous PostgreSQL migration picks up new tables: only MySQL captures schema-level changes. Other engines need the data migration restarted.
  • Believing a DMS Serverless replication can use a public address to reach S3 or Secrets Manager: it has no public IP and must use VPC endpoints.

Written from these sources

Try 3 questions on this

Pick an answer to see why each option is right or wrong.

  1. A company is moving a 4 TB on-premises Oracle database to Amazon Aurora PostgreSQL-Compatible Edition. Most of the order-processing logic lives in 300 PL/SQL packages that the applications call directly. Copying the existing data is expected to take about two days, and order entry must continue on the source throughout. The business allows less than one hour of downtime when the applications switch to Aurora. Which solution will meet these requirements?

    Right. In the game that’s Renown for your Resilience, Migration, and Business Continuity building.

    Not that one: B is right. In the game your Resilience, Migration, and Business Continuity building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    And the two-day copy has to happen while orders keep flowing: an AWS DMS task that loads existing data and then replicates ongoing changes keeps Aurora in step with Oracle, so the outage is only the final catch-up and switch. Only the option that converts first and then runs full load with ongoing replication satisfies both.

    Written from docs.aws.amazon.com/dms/latest/userguide/CHAP_SchemaConversion.html

  2. A company is consolidating 40 Microsoft SQL Server and Oracle databases into an Amazon S3 data lake with AWS DMS, using full load and ongoing replication. The database team does not want to estimate, provision or resize replication capacity for any of the databases. The replications must run in the company's private subnets, and all endpoint credentials must stay in AWS Secrets Manager. Which combination of steps should the solutions architect take to meet these requirements? (Select TWO.)

    Right. In the game that’s Renown for your Resilience, Migration, and Business Continuity building.

    Not that one: A,D is right. In the game your Resilience, Migration, and Business Continuity building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    Its documented limitations add the second step. Serverless replications have no public IP address and must use VPC endpoints to reach dependencies such as Amazon S3 and AWS Secrets Manager, so the subnets they run in need endpoints for both.

    Written from docs.aws.amazon.com/dms/latest/userguide/CHAP_Serverless.html

  3. A company is moving a 3 TB on-premises PostgreSQL 15 database to Amazon Aurora PostgreSQL-Compatible Edition. Replication will run for about three weeks before a cutover that may take no more than 30 minutes. During those weeks the development team keeps shipping weekly releases, and some releases create new tables in the source database. Every table must be present and current in Aurora at cutover, and the team wants AWS DMS to manage the migration resources. Which solution will meet these requirements?

    Right. In the game that’s Renown for your Resilience, Migration, and Business Continuity building.

    Not that one: C is right. In the game your Resilience, Migration, and Business Continuity building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    Its limitation is the deciding detail. Only for MySQL does it capture schema-level changes during ongoing replication; for PostgreSQL, a table created after the migration starts is not migrated until the data migration is restarted. Restarting after the last release that adds tables brings those tables across, and replication then keeps everything current until cutover.

    Written from docs.aws.amazon.com/dms/latest/userguide/data-migrations.html

Ask for something