AWS Certified Solutions Architect – Professional (SAP-C02) — Question 334

A company is running an application on Amazon EC2 instances in the AWS Cloud. The application is using a MongoDB database with a replica set as its data tier. The MongoDB database is installed on systems in the company’s on-premises data center and is accessible through an AWS Direct Connect connection to the data center environment.

A solutions architect must migrate the on-premises MongoDB database to Amazon DocumentDB (with MongoDB compatibility).

Which strategy should the solutions architect choose to perform this migration?

Answer options

Correct answer: B

Explanation

AWS Database Migration Service (AWS DMS) is the ideal service for migrating databases to AWS with minimal downtime, supporting Amazon DocumentDB as a target. By using change data capture (CDC), AWS DMS can replicate ongoing changes from the on-premises MongoDB source to the Amazon DocumentDB target. Other options, such as AWS Data Pipeline or AWS Glue, are not designed for live database replication, and deploying MongoDB on EC2 does not achieve the goal of migrating to Amazon DocumentDB.