exam questions

Exam AZ-301 All Questions

View all questions & answers for the AZ-301 exam

Exam AZ-301 topic 5 question 2 discussion

Actual exam question from Microsoft's AZ-301
Question #: 2
Topic #: 5
[All AZ-301 Questions]

You have an on-premises deployment of MongoDB.
You plan to migrate MongoDB to an Azure Cosmos DB account that uses the MongoDB API.
You need to recommend a solution for migrating MongoDB to Azure Cosmos DB.
What should you include in the recommendation?

  • A. mongorestore
  • B. Data Migration Assistant
  • C. Azure Storage Explorer
  • D. Azure Cosmos DB Data Migration Tool
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
References:
https://docs.microsoft.com/en-us/azure/cosmos-db/mongodb-migrate

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
pehe
Highly Voted 5 years, 7 months ago
I would select D - Azure Cosmos DB Data Migration Tool https://azure.microsoft.com/en-us/updates/documentdb-data-migration-tool/
upvoted 39 times
NickT
5 years, 7 months ago
Found this in https://docs.microsoft.com/en-us/azure/cosmos-db/import-data Azure Cosmos DB's API for MongoDB - The Data Migration tool doesn't currently support Azure Cosmos DB's API for MongoDB either as a source or as a target. If you want to migrate the data in or out of collections in Azure Cosmos DB, refer to How to migrate MongoDB data a Cosmos database with Azure Cosmos DB's API for MongoDB for instructions. You can still use the Data Migration tool to export data from MongoDB to Azure Cosmos DB SQL API collections for use with the SQL API.
upvoted 9 times
juri
4 years, 10 months ago
https://docs.microsoft.com/en-us/azure/dms/tutorial-mongodb-cosmos-db?toc=/azure/cosmos-db/toc.json "You can use Azure Database Migration Service to perform an offline (one-time) migration of databases from an on-premises or cloud instance of MongoDB to Azure Cosmos DB's API for MongoDB."
upvoted 2 times
juri
4 years, 10 months ago
it means you are right, not Azure Cosmos DB Data Migration Tool but Azure Database Migration Service must be used, but this option is not listed here, hence answer A is correct, see comment from Famous_guy
upvoted 1 times
...
...
...
onlyfunmails
5 years, 4 months ago
Agree for D. Note: If we have DMS in the options, we should opt it against all other.
upvoted 3 times
...
sameersoftyhcl
4 years, 11 months ago
D, https://docs.microsoft.com/en-us/azure/cosmos-db/cosmosdb-migrationchoices
upvoted 4 times
Test_Taker_1
4 years, 8 months ago
More specifically: https://docs.microsoft.com/en-us/azure/cosmos-db/cosmosdb-migrationchoices#azure-cosmos-db-mongo-api
upvoted 1 times
...
...
yemma
4 years, 11 months ago
No, I already faced this problem, Azure Cosmos DB Data Migration Tool is worling only with SQL API. For mongo you have to shell, and the command mongorestore.
upvoted 5 times
juri
4 years, 10 months ago
https://docs.microsoft.com/en-us/azure/dms/tutorial-mongodb-cosmos-db?toc=/azure/cosmos-db/toc.json "You can use Azure Database Migration Service to perform an offline (one-time) migration of databases from an on-premises or cloud instance of MongoDB to Azure Cosmos DB's API for MongoDB."
upvoted 2 times
juri
4 years, 10 months ago
it means you are right, not Azure Cosmos DB Data Migration Tool but Azure Database Migration Service must be used, but this option is not listed here, hence answer A is correct - mongorestore
upvoted 6 times
...
...
...
...
AzureGC
Highly Voted 5 years, 5 months ago
A: mongorestore is supported for a Azure Cosmos DB, alternately, Azure Data Migration Service. Given the later is not an answer, then, the only answer is: A, since this is a "one time" migration. https://azure.microsoft.com/en-us/resources/videos/using-mongodb-tools-with-azure-cosmos-db/ https://www.youtube.com/watch?v=YWnvcKcs7Qk
upvoted 16 times
Rajuuu
5 years ago
There is no mention of mongorestore in the Azure Cosmos API and data migration.
upvoted 1 times
macco455
4 years, 7 months ago
First paragraph states that D can be used for Mongo DB to Cosmo DB.. https://azure.microsoft.com/en-us/updates/documentdb-data-migration-tool/
upvoted 3 times
...
...
...
AlfuryDB
Most Recent 4 years, 2 months ago
This one comes by elimination. It's A because the other options don't make a lot of sense. DMA is for SQL servers (https://docs.microsoft.com/en-us/sql/dma/dma-overview?view=sql-server-ver15). The azure storage explorer it does not make any sense. The cosmos DB migration, does NOT support MongoDB API (directly). So the only remaining option is the A even if I think it looks strange these days.
upvoted 1 times
...
azurecert2021
4 years, 2 months ago
given answer is correct as Azure Database Migration Service and Azure Database Migration tool both are different ,tool only support SQL API and Table API , it does not support Azure Cosmos DB's API for MongoDB ,Cassandra API and Gremlin API https://docs.microsoft.com/en-us/azure/cosmos-db/import-data we have following migration option to migrate MongoDB to an Azure Cosmos DB account that uses the MongoDB API :- Online Azure Database Migration Service Offline Azure Database Migration Service Offline Azure Data Factory Offline Existing Mongo Tools (mongodump, mongorestore, Studio3T) https://docs.microsoft.com/en-us/azure/cosmos-db/cosmosdb-migrationchoices
upvoted 4 times
...
glam
4 years, 3 months ago
A. mongorestore
upvoted 1 times
...
sanketshah
4 years, 4 months ago
A is correct answer
upvoted 2 times
...
Afz
4 years, 7 months ago
A ie Mangorestore seems correct. Azure Cosmos DB Data Migration tool doesn't currently support Azure Cosmos DB's API for MongoDB either as a source or as a target. https://docs.microsoft.com/en-us/azure/cosmos-db/import-data
upvoted 1 times
...
fiol82
4 years, 7 months ago
Based on all previous answers: A is correct.
upvoted 1 times
...
macco455
4 years, 7 months ago
https://azure.microsoft.com/en-us/updates/documentdb-data-migration-tool/ D is correct answer based on 1st paragraph here. Also, DataBASE Migration Assistant would be correct but that is not an option here
upvoted 1 times
...
user_name
4 years, 7 months ago
https://azure.microsoft.com/en-us/updates/documentdb-data-migration-tool/ D!
upvoted 2 times
...
[Removed]
4 years, 8 months ago
Okay, couldn't stop thinking about this question, and I think I found the bloody trick behind this question. Still the proposed answer A. is correct, but for different reasons. Regarding D. Azure Cosmos DB Data Migration Tool: When looking at the GitHub repository it says: "The Azure Cosmos DB Data Migration Tool is an open source solution to import data to Azure CosmosDB ____SQL API_____ (DocumentDB) and Table API endpoints from a variety of sources..." Okay fine. But the reason why this is still the wrong answer is because of the question. "You plan to migrate MongoDB to an Azure Cosmos DB account that uses the ____MongoDB API.____". And thats why A. mongorestore is the only correct answer here.
upvoted 3 times
...
Len
4 years, 8 months ago
You can use Either Mangorestore or DMS . https://www.youtube.com/watch?v=YWnvcKcs7Qk
upvoted 1 times
Len
4 years, 8 months ago
so the given answer is correct
upvoted 1 times
...
...
sk20
4 years, 8 months ago
i think, the answer should be D based on Microsoft documentation https://docs.microsoft.com/en-us/azure/cosmos-db/cosmosdb-migrationchoices( Section Mongo DB API ) Not sure what I am missing here ..
upvoted 1 times
...
[Removed]
4 years, 9 months ago
Regarding D). What's strange is that when looking at the tool it seems to support it. Also the github page states it's supported: https://github.com/Azure/azure-documentdb-datamigrationtool. Could be this question is outdated.
upvoted 2 times
...
[Removed]
4 years, 9 months ago
A. mongorestore https://azure.microsoft.com/en-us/resources/videos/using-mongodb-tools-with-azure-cosmos-db/ B. Data Migration Assistant > Doesn't support MongoDB, can be ruled out! C. Azure Storage Explorer > Doesn't make sense at all, can be ruled out! D. Azure Cosmos DB Data Migration Tool > Quote "The Data Migration tool doesn't currently support Azure Cosmos DB's API for MongoDB either as a source or as a target." https://docs.microsoft.com/en-us/azure/cosmos-db/import-data Conclusion: Answer A) is correct!
upvoted 7 times
...
ablab
4 years, 9 months ago
Answer is D This tutorial provides instructions on using the Azure Cosmos DB Data Migration tool, which can import data from various sources into Azure Cosmos containers and tables. You can import from JSON files, CSV files, SQL, MongoDB, Azure Table storage, Amazon DynamoDB, and even Azure Cosmos DB SQL API collections. You migrate that data to collections and tables for use with Azure Cosmos DB. The Data Migration tool can also be used when migrating from a single partition collection to a multi-partition collection for the SQL API.
upvoted 1 times
...
mackc13
4 years, 9 months ago
with the available choices, answer A should be the correct answer unless there is Azure DMS as an option
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago