AWS Certified Database – Specialty — Question 340
An information management services company is storing JSON documents on premises. The company is using a MongoDB 3.6 database but wants to migrate to
AWS. The solution must be compatible, scalable, and fully managed. The solution also must result in as little downtime as possible during the migration.
Which solution meets these requirements?
Answer options
- A. Create an AWS Database Migration Service (AWS DMS) replication instance, a source endpoint for MongoDB, and a target endpoint of Amazon DocumentDB (with MongoDB compatibility).
- B. Create an AWS Database Migration Service (AWS DMS) replication instance, a source endpoint for MongoDB, and a target endpoint of a MongoDB image that is hosted on Amazon EC2
- C. Use the mongodump and mongorestore tools to migrate the data from the source MongoDB deployment to Amazon DocumentDB (with MongoDB compatibility).
- D. Use the mongodump and mongorestore tools to migrate the data from the source MongoDB deployment to a MongoDB image that is hosted on Amazon EC2.
Correct answer: A
Explanation
Amazon DocumentDB (with MongoDB compatibility) is a fully managed and scalable database service, whereas running MongoDB on Amazon EC2 is self-managed and does not meet the fully managed requirement. Additionally, AWS Database Migration Service (AWS DMS) allows for continuous replication, minimizing downtime during the transition, while mongodump and mongorestore are offline tools that require significant downtime.