Migrate legacy database

0

A solutions architect is planning to migrate critical Microsoft SQL Server databases to AWS. Because the databases are legacy systems, the solutions architect will move the databases to a modern data architecture. The solutions architect must migrate the databases with near-zero downtime.

Which solution will meet these requirements?

A. Use AWS Application Migration Service and the AWS Schema Conversion Tool (AWS SCT). Perform an in-place upgrade before the migration. Export the migrated data to Amazon Aurora Serverless after cutover. Repoint the applications to Amazon Aurora.

B. Use AWS Database Migration Service (AWS DMS) to rehost the database. Set Amazon S3 as a target. Set up change data capture (CDC) replication. When the source and destination are fully synchronized, load the data from Amazon S3 into an Amazon RDS for Microsoft SQL Server DB instance.

C. Use native database high availability tools. Connect the source system to an Amazon RDS for Microsoft SQL Server DB instance. Configure replication accordingly. When data replication is finished, transition the workload to an Amazon RDS for Microsoft SQL Server DB instance.

D. Use AWS Application Migration Service. Rehost the database server on Amazon EC2. When data replication is finished, detach the database and move the database to an Amazon RDS for Microsoft SQL Server DB instance. Reattach the database and then cut over all networking.

Isaac
asked 2 months ago70 views
3 Answers
1

Hello.

To migrate your legacy Microsoft SQL Server databases to AWS with near-zero downtime, follow this simple approach using AWS Database Migration Service DMS.

1. Set Up Amazon RDS for SQL Server

  • Launch an Amazon RDS instance for Microsoft SQL Server as your target database on AWS.

2. Use AWS Database Migration Service DMS

  • Create a DMS Replication Instance Set up a DMS replication instance that will handle the data transfer.

  • Configure the Source and Target Define your on-premises SQL Server as the source and your Amazon RDS SQL Server as the target.

Enable Change Data Capture (CDC) This feature allows you to replicate ongoing changes from your source database to the target, ensuring data synchronization during the migration process.

3. Start the Data Migration

  • Begin the migration process with DMS, which will copy your existing data from the legacy SQL Server to Amazon RDS.

  • While the initial data is being migrated, CDC will capture and apply any changes happening on your source database.

4. Final Cutover

  • Once the data is fully synchronized, perform the final cutover by pointing your applications to the new Amazon RDS instance.

  • This cutover can be scheduled during a maintenance window to minimize impact.

5. Post-Migration

  • Test the new setup to ensure everything works as expected and decommission the old database if everything is functioning properly.

https://docs.aws.amazon.com/dms/latest/sbs/dms-sbs-welcome.html

https://dev.to/marufhossain/a-step-by-step-guide-to-migrating-legacy-applications-to-aws-kem#:~:text=A%20Step-by-Step%20Guide%20to%20Migrating%20Legacy%20Applications%20to,...%207%20Step%207%3A%20Optimize%20and%20Fine-Tune%20

EXPERT
answered 2 months ago
profile picture
EXPERT
reviewed 2 months ago
0

The solution that best meets the requirement of migrating critical Microsoft SQL Server databases with near-zero downtime and modernizing the architecture is:

Option C:Use native database high availability tools. Connect the source system to an Amazon RDS for Microsoft SQL Server DB instance. Configure replication accordingly. When data replication is finished, transition the workload to an Amazon RDS for Microsoft SQL Server DB instance.

Explanation:

Near-Zero Downtime: By using native high availability tools (such as Always On Availability Groups or transactional replication), you can achieve near-zero downtime during the migration. These tools allow continuous data replication from the on-premises SQL Server to the target Amazon RDS instance, keeping the data synchronized until the cutover.

Modern Data Architecture: Moving the database to Amazon RDS for Microsoft SQL Server allows the databases to benefit from a managed service that provides automated backups, patching, and scaling, aligning with modern data architecture practices.

Minimal Complexity: This solution leverages familiar SQL Server high availability features, reducing the complexity and risk of the migration process.

EXPERT
answered 2 months ago
0

Hello Isaac, in my opinion solution B would be the most suitable solution.

Seeing that you are bringing up key words such as "legacy systems", "move the databases to a modern architecture" and "near-zero downtime". I would suggest you to look into Babelfish for Aurora PostgreSQL. Set the Microsoft SQL Sever as the source database and the Babelfish target as the destination using AWS DMS. AWS SCT can be used to perform the migration as well but you'll have to use DBeaver with it.

While B is the most suitable answer out of the four. It could do better when it comes to moving to a modern architecture; to enhance database performance and scalability using Aurora Postgres. Aurora Postgres uses a distributed storage system that automatically replicates data across multiple Availability Zones or region providing high availability and durability which the legacy MSSQL database couldn't provide. On top of that you get to reduce operating cost as you move away from licensing.

AWS
answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions