In this lab, you will perform an offline migration of a MongoDB database to an Amazon DocumentDB cluster. After completing this lab, you will have hands-on experience with performing an offline migration using the `mongodump` and `mongorestore` commands.
Successfully complete this lab by achieving the following learning objectives:
- Dump the Collection Data
Dump the collection named
libraryfrom the source MongoDB instance at
- Create the Index
Create an index on the
authorfield of the
librarydatabase on the DocumentDB cluster.
- Restore the Collection Data
Restore the collection data dumped from the source to the DocumentDB cluster.
- Test the New Endpoint
Test the connection to the DocumentDB cluster, and provide the new endpoint to the application administrators.