Migrating MongoDB to Azure Cosmos DB - Best Practices

Migrating MongoDB to Azure Cosmos DB

Question

This question requires that you evaluate the underlined text to determine if it is correct.

You company has an on-premises deployment of MongoDB, and an Azure Cosmos DB account that makes use of the MongoDB API.

You need to devise a strategy to migrate MongoDB to the Azure Cosmos DB account.

You include the Data Management Gateway tool in your migration strategy.

Instructions: Review the underlined text.

If it makes the statement correct, select 'No change required.' If the statement is incorrect, select the answer choice that makes the statement correct.

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

B.

https://docs.microsoft.com/en-us/azure/cosmos-db/mongodb-migrate https://docs.mongodb.com/manual/reference/program/mongorestore/

The underlined text states that the Data Management Gateway tool is included in the migration strategy for migrating MongoDB to the Azure Cosmos DB account that uses the MongoDB API. This statement is incorrect.

The Data Management Gateway tool is used to connect on-premises data sources to Azure services, including Power BI, PowerApps, and Microsoft Flow. It provides a secure and reliable connection between on-premises data sources and cloud-based services.

However, in the context of migrating MongoDB to Azure Cosmos DB, the Data Management Gateway tool is not relevant. Instead, you should use one of the available migration tools such as the Azure Database Migration Service or the mongoimport/mongodump utilities to migrate your data.

Therefore, the correct answer is B. mongorestore.

mongorestore is a MongoDB command-line tool that is used to restore data from a backup created using mongodump, which is another command-line tool used to create backups of MongoDB data. You can use mongorestore to restore the data to the Azure Cosmos DB account that uses the MongoDB API.

Option C, Azure Storage Explorer, is a graphical tool that allows you to work with Azure Storage data on Windows, macOS, and Linux. It is not relevant to MongoDB to Azure Cosmos DB migration.

Option D, AzCopy, is a command-line tool that is used to copy data to and from Azure Storage. It is not relevant to MongoDB to Azure Cosmos DB migration.

Option A, No change required, is incorrect, as explained above.

In summary, you should use mongorestore to migrate MongoDB data to an Azure Cosmos DB account that uses the MongoDB API.