
Answer-first summary for fast verification
Answer: Set up an AWS Database Migration Service (AWS DMS) replication instance, configure a source endpoint for the on-premises MongoDB database using change data capture (CDC), and define a target endpoint for the Amazon DocumentDB database. Then, create and execute a DMS migration task.
Option B is the correct answer. AWS Database Migration Service (AWS DMS) is a managed service specifically designed for migrating databases to AWS with minimal downtime. By using DMS, you can set up a replication instance, create a source endpoint for the on-premises MongoDB database using change data capture (CDC), and define a target endpoint for the Amazon DocumentDB database. This method ensures a smooth and efficient migration process. The high votes and references in the user comments further validate this solution as the most appropriate strategy.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A company operates an application on Amazon EC2 instances within the AWS Cloud, utilizing a MongoDB database with a replica set as its data tier. This MongoDB database is hosted on-premises and is accessible via an AWS Direct Connect link to the company's data center. A solutions architect is tasked with migrating this on-premises MongoDB database to Amazon DocumentDB, which is compatible with MongoDB. What is the most appropriate strategy for this migration?
A
Deploy a set of EC2 instances, install MongoDB Community Edition on them, and establish a database. Set up continuous synchronous replication from this new database to the on-premises MongoDB database.
B
Set up an AWS Database Migration Service (AWS DMS) replication instance, configure a source endpoint for the on-premises MongoDB database using change data capture (CDC), and define a target endpoint for the Amazon DocumentDB database. Then, create and execute a DMS migration task.
C
Develop a data migration pipeline using AWS Data Pipeline, specifying data nodes for both the on-premises MongoDB database and the Amazon DocumentDB database. Schedule a task to activate this data pipeline periodically.
D
Utilize AWS Glue crawlers to create a source endpoint for the on-premises MongoDB database and set up continuous asynchronous replication between the MongoDB database and the Amazon DocumentDB database.