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, 11 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, 10 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
5 years, 1 month 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
5 years, 1 month 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, 7 months ago
Agree for D. Note: If we have DMS in the options, we should opt it against all other.
upvoted 3 times
...
sameersoftyhcl
5 years, 2 months ago
D, https://docs.microsoft.com/en-us/azure/cosmos-db/cosmosdb-migrationchoices
upvoted 4 times
Test_Taker_1
4 years, 12 months ago
More specifically: https://docs.microsoft.com/en-us/azure/cosmos-db/cosmosdb-migrationchoices#azure-cosmos-db-mongo-api
upvoted 1 times
...
...
yemma
5 years, 3 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
5 years, 1 month 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
5 years, 1 month 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, 8 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, 3 months ago
There is no mention of mongorestore in the Azure Cosmos API and data migration.
upvoted 1 times
macco455
4 years, 11 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, 5 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, 6 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, 6 months ago
A. mongorestore
upvoted 1 times
...
sanketshah
4 years, 7 months ago
A is correct answer
upvoted 2 times
...
Afz
4 years, 11 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, 11 months ago
Based on all previous answers: A is correct.
upvoted 1 times
...
macco455
4 years, 11 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, 11 months ago
https://azure.microsoft.com/en-us/updates/documentdb-data-migration-tool/ D!
upvoted 2 times
...
Len
4 years, 12 months ago
You can use Either Mangorestore or DMS . https://www.youtube.com/watch?v=YWnvcKcs7Qk
upvoted 1 times
Len
4 years, 12 months ago
so the given answer is correct
upvoted 1 times
...
...
sk20
5 years 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
...
ablab
5 years 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
5 years ago
with the available choices, answer A should be the correct answer unless there is Azure DMS as an option
upvoted 1 times
...
[Removed]
5 years, 1 month ago
I guess the question is outdated. There should be another option E) which is called "Azure Database Migration Service". That would be the right answer according to this link: https://docs.microsoft.com/en-us/azure/dms/tutorial-mongodb-cosmos-db?toc=/azure/cosmos-db/toc.json&bc=/azure/cosmos-db/breadcrumb/toc.json
upvoted 6 times
ct84
5 years ago
yep, very much concur.
upvoted 1 times
...
Yannor
5 years ago
While we don't have that, another user pointed out a video that recommends mongodump/mongorestore. So the answer should be Database migration service and if that is not possible, mongorestore the video: https://www.youtube.com/watch?v=YWnvcKcs7Qk
upvoted 4 times
...
...
Neetiniti
5 years, 1 month ago
Correct Answer: B Azure Database Migration Service to perform an online (minimal downtime) migration of databases from an on-premises or cloud instance of MongoDB to Azure Cosmos DB's API for MongoDB. https://docs.microsoft.com/en-us/azure/dms/tutorial-mongodb-cosmos-db-online
upvoted 1 times
Neetiniti
5 years ago
Sorry ignore my previous comment...Correct Answer: D. With the Azure Cosmos DB Data Migration tool, you can easily migrate data to Azure Cosmos DB. The Azure Cosmos DB Data Migration tool is an open source solution that imports data to Azure Cosmos DB from a variety of sources, including: -JSON files -MongoDB -SQL Server -CSV files -Azure Cosmos DB collections https://azure.microsoft.com/en-us/updates/documentdb-data-migration-tool/
upvoted 1 times
asdfgh1234567
5 years ago
except it doesnt support the Azure Cosmos DB's API for MongoDB. so correct answer is Database Migration Service, which isn't an answer.
upvoted 4 times
...
...
...
azlopaz
5 years, 1 month ago
The answer is D https://azure.microsoft.com/en-us/updates/documentdb-data-migration-tool/ With the Azure Cosmos DB Data Migration tool, you can easily migrate data to Azure Cosmos DB. The Azure Cosmos DB Data Migration tool is an open source solution that imports data to Azure Cosmos DB from a variety of sources, including: -JSON files -MongoDB -SQL Server -CSV files -Azure Cosmos DB collections
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 ...