Establish connectivity from the Amazon EC2 instance to your MongoDB source , then export the data and indexes to the Amazon EC2migration instance using the mongodump tool. To reduce the potential impact of the mongodump tool on the source deployment, use the MongoDB read preference option to force the dump to connect to a secondary replica set member. Optional: Use the Amazon DocumentDB Index Tool to check the dumped indexes for compatibility and to pre-create the indexes on the target Amazon DocumentDB cluster. This improves overall restore time. Restore exported data to your target Amazon DocumentDB cluster using the mongorestore tool. To parallelize imports, use the mongorestore “numInsertionWorkersPerCollection ” option. After data restore is complete, you can switch your application’s database connection string to use your new target Amazon DocumentDB cluste