Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 1 question 9 discussion

Actual exam question from Microsoft's AZ-204
Question #: 9
Topic #: 1
[All AZ-204 Questions]

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.

  • A. No change required
  • B. mongorestore
  • C. Azure Storage Explorer
  • D. AzCopy
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
jay158
Highly Voted 1 month, 1 week ago
Answer: B --mongorestore https://docs.microsoft.com/en-us/azure/cosmos-db/mongodb-pre-migration
upvoted 33 times
jay158
3 years, 3 months ago
Azure Database Migration Service [ is for online Migration] but it is not a choice https://docs.microsoft.com/en-us/azure/dms/tutorial-mongodb-cosmos-db-online
upvoted 4 times
AzureLearning
2 years, 9 months ago
The Data management gateway is a client agent that you must install in your on-premises environment to copy data between cloud and on-premises data stores. https://docs.microsoft.com/en-us/azure/data-factory/v1/data-factory-data-management-gateway
upvoted 2 times
...
...
...
forgetfulalligator
Highly Voted 1 year, 8 months ago
Selected Answer: B
mongorestore can be used to restore a MongoDB backup to the Azure Cosmos DB account using the MongoDB API.
upvoted 5 times
...
Nhantran20000502
Most Recent 1 week ago
Selected Answer: B
The underlined text is incorrect. The Data Management Gateway tool is not typically used for migrating MongoDB to Azure Cosmos DB. The correct answer is B. mongorestore. To migrate MongoDB to Azure Cosmos DB, you can use MongoDB native tools like mongodump and mongorestore. These tools are designed to handle the export and import of MongoDB data efficiently.
upvoted 1 times
...
Mol_
1 month, 1 week ago
Selected Answer: B
Got this on the Microsoft documentation: "The MongoDB native tools are a set of binaries that facilitate data manipulation on an existing MongoDB instance. Since Azure Cosmos DB exposes an API for MongoDB, the MongoDB native tools are able to insert data into Azure Cosmos DB. The focus of this doc is on migrating data out of a MongoDB instance using mongoexport/mongoimport or mongodump/mongorestore. Since the native tools connect to MongoDB using connection strings, you can run the tools anywhere, however we recommend running these tools within the same network as the MongoDB instance to avoid firewall issues."
upvoted 1 times
...
man5484
1 month, 1 week ago
Selected Answer: B
Data Management Gateway: This tool is used for connecting on-premises data sources (like SQL Server) to Azure Analysis Services or Power BI for data visualization and reporting. It's not designed for direct database migrations. Correct Answer: B. mongorestore The mongorestore command-line tool is specifically designed for restoring data backups created with mongodump into a MongoDB instance. This makes it a suitable option for migrating data from your on-premises MongoDB deployment to the Azure Cosmos DB account using the MongoDB API.
upvoted 3 times
...
harbox
1 month, 1 week ago
Selected Answer: 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.
upvoted 2 times
...
Dianahu
1 year, 3 months ago
No change required => https://learn.microsoft.com/en-us/azure/data-factory/v1/data-factory-on-premises-mongodb-connector and https://learn.microsoft.com/en-us/azure/data-factory/v1/data-factory-move-data-between-onprem-and-cloud all the links supporting option with mongorestore do not mention data management gateway. For data management gateway you only need to specify schema and the rest is done by DMG and its pipeline with a copy activity.
upvoted 1 times
...
Alluru
1 year, 7 months ago
Data Management Gateway is not supported for Azure Cosmos DB - Mongo API https://learn.microsoft.com/en-us/azure/data-factory/v1/data-factory-data-movement-activities#supported-data-stores-and-formats So you can use native tools 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. https://learn.microsoft.com/en-us/azure/cosmos-db/mongodb/tutorial-mongotools-cosmos-db#overview-of-data-migration-using-mongodb-native-tools
upvoted 1 times
JhonR
1 year, 6 months ago
The question doesn`t mention DataFactory, which is where your first link points. Here we can see DMG is listed among the migration tools: https://learn.microsoft.com/en-us/azure/cosmos-db/mongodb/pre-migration-steps. So the answer is A.
upvoted 1 times
...
...
wrak
1 year, 8 months ago
When moving the whole DB, we are using mongorestore: https://learn.microsoft.com/en-us/azure/cosmos-db/mongodb/tutorial-mongotools-cosmos-db
upvoted 1 times
...
uffuchsi
1 year, 8 months ago
A - No change required
upvoted 1 times
...
fkaracan
1 year, 8 months ago
To migrate MongoDB to an Azure Cosmos DB account that uses the MongoDB API, you can use mongodump and mongorestore tools that are included with MongoDB.
upvoted 3 times
warchoon
1 year, 8 months ago
I think "MongoDB API" is a key
upvoted 1 times
...
...
guschess
1 year, 9 months ago
Selected Answer: A
"include data management gateway" https://azure.microsoft.com/en-us/blog/data-management-gateway-high-availability-and-scalability-preview/
upvoted 1 times
...
armpro
1 year, 9 months ago
Selected Answer: A
Answer: A In Data Management Gateway i.e., Data factory once source and sink are setup, there is no need for mongorestore to run, running the pipeline will transfer data.
upvoted 2 times
warchoon
1 year, 8 months ago
Are you calling setting up a gateway and using a client agent a "tool"?
upvoted 1 times
...
...
lormar72
1 year, 10 months ago
i think is A the DMG do the job
upvoted 1 times
...
kkop
1 year, 12 months ago
Selected Answer: B
mongorestore imports your BSON file dump into Azure Cosmos DB. Here, you can enhance the level of your knowledge about MongoDB migrations: https://learn.microsoft.com/en-us/azure/cosmos-db/mongodb/tutorial-mongotools-cosmos-db
upvoted 4 times
...
Alluru
2 years ago
For datastores with <10 GB monogoDB native tool is used for migration from on-premises data store to cloud data store. https://learn.microsoft.com/en-us/azure/cosmos-db/mongodb/pre-migration-steps#pre-migration-logistics-planning
upvoted 1 times
...
Alluru
2 years ago
I agree with Kozchris, the answer is B - mongorestore. DMG can not have Cosmos DB - Mongo as a supported sink (target). https://learn.microsoft.com/en-us/azure/data-factory/v1/data-factory-data-movement-activities#supported-data-stores-and-formats
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 ...