サービス · Migration and Transfer · CLF-C02 の発展
AWS Database Migration Service (AWS DMS)
Moves data between databases while the source stays online. Pair it with SCT when the engine changes.
このレッスンはまだ翻訳されていないため、英語で表示しています。
クラウドプラクティショナーで学んだこと
- DMS copies a database to AWS while the source keeps running.
- When the engine changes, the schema is converted first with AWS SCT or DMS Schema Conversion.
- A homogeneous move keeps the same engine, such as MySQL to Amazon RDS for MySQL.
- 1SCT converts the schema and code, and creates them on the target.
- 2DMS runs a full load of the existing data while the source stays in use.
- 3DMS then keeps copying changes until you switch the application over.
Example
- Homogeneous
- MySQL to Amazon RDS for MySQL
- Heterogeneous
- Oracle to Aurora PostgreSQL
Schema
- Homogeneous
- Mostly the same
- Heterogeneous
- Convert with SCT first
Tools
- Homogeneous
- DMS or native tools
- Heterogeneous
- SCT
DMS
Extra work
- Homogeneous
- Little
- Heterogeneous
- Test converted code
| Compare | Homogeneous | Heterogeneous |
|---|---|---|
| Example | MySQL to Amazon RDS for MySQL | Oracle to Aurora PostgreSQL |
| Schema | Mostly the same | Convert with SCT first |
| Tools | DMS or native tools | SCT |
| Extra work | Little | Test converted code |
1 / 2
Example
- Homogeneous
- MySQL to Amazon RDS for MySQL
- Heterogeneous
- Oracle to Aurora PostgreSQL
Schema
- Homogeneous
- Mostly the same
- Heterogeneous
- Convert with SCT first
Tools
- Homogeneous
- DMS or native tools
- Heterogeneous
- SCT
DMS
| Compare | Homogeneous | Heterogeneous |
|---|---|---|
| Example | MySQL to Amazon RDS for MySQL | Oracle to Aurora PostgreSQL |
| Schema | Mostly the same | Convert with SCT first |
| Tools | DMS or native tools | SCT |
2 / 2
Extra work
- Homogeneous
- Little
- Heterogeneous
- Test converted code
| Compare | Homogeneous | Heterogeneous |
|---|---|---|
| Extra work | Little | Test converted code |
概要
A DMS task first copies all existing data (full load), then keeps copying changes as they happen (change data capture, or CDC). The source stays in use until you switch over, so the downtime is short. The work runs on a replication instance that you size for the load (CPU, memory and storage), or on DMS Serverless, which scales its capacity automatically. Turn on Multi-AZ for the replication instance when the migration must survive a failure.
概要
In a homogeneous migration (same engine) the native tools may also work. In a heterogeneous migration (different engines, such as Oracle to Aurora PostgreSQL) convert the schema first with SCT, then move the data with DMS. DMS can also write to targets that are not databases, such as Amazon S3 or Amazon Kinesis Data Streams, to feed a data lake or a stream.
覚えること
- Full load, then ongoing CDC. Short downtime at cutover.
- Homogeneous: same engine. Heterogeneous: different engines, so SCT first.
- Size the replication instance for the load. Multi-AZ makes it resilient.
- DMS Serverless scales capacity by itself.
- Targets include S3 and Kinesis Data Streams, not only databases.
覚えること
- The source and target must be reachable: use a VPN or Direct Connect for on-premises sources.
試験では
- “Migrate with minimal downtime” points to DMS with ongoing replication (CDC).
- “Oracle to Aurora PostgreSQL” points to SCT for the schema and DMS for the data.
- “Continuously stream database changes into a data lake” points to DMS with an S3 target.
混同しやすいもの
- AWS Schema Conversion Tool (AWS SCT)Converts a database schema and its code to another engine before a heterogeneous migration.
AWS DataSyncMoves files and objects online, fast and on a schedule, between storage systems and AWS.
- Read replicasCopies of a database that serve reads. They add read capacity, not high availability.