exam questions

Exam AZ-301 All Questions

View all questions & answers for the AZ-301 exam

Exam AZ-301 topic 5 question 9 discussion

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

HOTSPOT -
You have a web application that uses a MongoDB database. You plan to migrate the web application to Azure.
You must migrate to Cosmos DB while minimizing code and configuration changes.
You need to design the Cosmos DB configuration.
What should you recommend? To answer, select the appropriate values in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
MongoDB compatibility: API -

API: MongoDB API -
Azure Cosmos DB comes with multiple APIs:
✑ SQL API, a JSON document database service that supports SQL queries. This is compatible with the former Azure DocumentDB.
✑ MongoDB API, compatible with existing Mongo DB libraries, drivers, tools and applications.
✑ Cassandra API, compatible with existing Apache Cassandra libraries, drivers, tools, and applications.
✑ Azure Table API, a key-value database service compatible with existing Azure Table Storage.
✑ Gremlin (graph) API, a graph database service supporting Apache Tinkerpop's graph traversal language, Gremlin.
References:
https://docs.microsoft.com/en-us/azure/cosmos-db/create-mongodb-dotnet

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
AmineHZ
Highly Voted 5 years ago
the correct answer should be : Account and MongoDB API https://docs.microsoft.com/en-us/azure/cosmos-db/create-mongodb-dotnet
upvoted 38 times
nettekguy
5 years ago
The API determines the type of account to create. Azure Cosmos DB provides five APIs: Core (SQL) for document databases, Gremlin for graph databases, Azure Cosmos DB for Mongo DB API for document databases, Azure Table, and Cassandra. Currently, you must create a separate account for each API.
upvoted 14 times
...
...
Shiven
Highly Voted 5 years ago
Correct answer is MongoDB compatibility: Database API:MongoDB API
upvoted 16 times
NKnab
4 years, 11 months ago
incorrect. please see https://docs.microsoft.com/en-us/azure/cosmos-db/create-mongodb-dotnet. 1st is account, 2nd is MongoDB API
upvoted 10 times
James0208
4 years, 9 months ago
I think the given answer is correct. The link you supply also explains API determines what account to create, with different API type for different DB, such as Mongo DB API for Cosmos DB, which is the answer for the second question.
upvoted 2 times
tartar
4 years, 8 months ago
Account MongoDB API
upvoted 5 times
TEMPKAKAM
4 years, 5 months ago
Database MongoDB API
upvoted 1 times
...
...
...
...
...
AKumar
Most Recent 4 years, 2 months ago
I think the answer to MongoDB compatibility: API. Refernece:https://datamigration.microsoft.com/scenario/mongo-to-cosmos?step=1
upvoted 3 times
...
glam
4 years, 3 months ago
Account MongoDB API
upvoted 1 times
...
sanketshah
4 years, 4 months ago
1. Database 2. MongoDB API
upvoted 2 times
...
PrashantGupta1616
4 years, 5 months ago
The answer is NOT Correct here is correct one MongoDB compatibility: Database API:MongoDB API
upvoted 1 times
PrashantGupta1616
4 years, 5 months ago
In the Azure Cosmos DB account, you would need to create a database. When using the Mongo DB API for Cosmos DB, you have to create a database to store the data.
upvoted 1 times
...
...
Abbas
4 years, 5 months ago
It should be Collection and MongoDB API.
upvoted 1 times
...
azure_kai
4 years, 7 months ago
Azure Cosmos DB provides native support for wire protocol-compatible APIs for popular databases, including MongoDB. The important point here is to understand "wire protocol". By reading this link: https://docs.mongodb.com/manual/reference/mongodb-wire-protocol/ Looks like it's all about API style communication between client to database server. So I would choose "API" for Box 1.
upvoted 1 times
...
Marang73
4 years, 7 months ago
When you create a Cosmos DB account you need to specify: - API: in this case MongoDB API - Version (field only available when you choose Mongo DB API in field API) So answer should be: Account MongoDB API
upvoted 2 times
...
clearexam6677
4 years, 8 months ago
MongoDB compatibility: Account API:MongoDB API
upvoted 2 times
...
MegatonN
4 years, 8 months ago
For "mongodb compatibility" my understanding is: do we have "full" compatibility between mongoDB and CosmosDB (database: can you use mongodb data files directly to CosmosDB) or at other levels ( accounts, ...). And it is clearly explained in Microsoft doc that the compatibility is at the API level So the answer is: API
upvoted 1 times
...
tmurfet
4 years, 9 months ago
Ambiguous question. However, the key word is compatibility, which I discovered here: https://docs.microsoft.com/en-us/azure/cosmos-db/mongodb-introduction quote: "By default, new ***accounts*** created using Azure Cosmos DB's API for MongoDB are ***compatible*** with version 3.6 of the MongoDB wire protocol. Any MongoDB client driver that understands this protocol version should be able to natively connect to Cosmos DB." Only direct link to the question I could find.
upvoted 1 times
...
denkes
4 years, 9 months ago
Check Comment from "AmineHZ" 3 months ago and from "nettekguys" response comments. At least based on the upvotes, you should consider to read the reference and might think abount Option "account" for Box 1.
upvoted 1 times
denkes
4 years, 9 months ago
In addition to my previous post see also the creation script at: https://docs.microsoft.com/en-us/azure/cosmos-db/scripts/cli/mongodb/create and the Screenshot of Setup wizard at Chapter: "Create a migration project", no 4, Screenshot Info hint: To successfully migrat from MongoDB, please: Create a Cosmos DB account with support of MondoDB API. Ref: https://docs.microsoft.com/en-us/azure/dms/tutorial-mongodb-cosmos-db?toc=/azure/cosmos-db/toc.json
upvoted 2 times
...
...
Test_Taker
4 years, 9 months ago
MongoDB Compatibility: Collection This seems correct to me be because: https://docs.microsoft.com/en-us/azure/container-instances/container-instances-overview Under step 4 -> API, it says: "Select Azure Cosmos DB for Mongo DB API because in this quickstart you are creating a *collection* that works with MongoDB."
upvoted 3 times
...
eug45
4 years, 10 months ago
Correct answer is MongoDB compatibility: Database API:MongoDB API
upvoted 3 times
...
ct84
4 years, 10 months ago
this is a bit strange.. i mean it's pretty clear that you should select MongoDb Api as the CosmosDb Api to use... however, the actual 'MongoDb Compatibility' is pretty unclear what they are actually after. When you provision a CosmosDb instance, and choose the MongoDb Api, you actually need to select a version of MongoDb.. i am thinking that perhaps this is the MongoDb Compatibility they are looking for?? Therefore "API".
upvoted 7 times
ct84
4 years, 10 months ago
More info.. https://docs.microsoft.com/en-us/azure/cosmos-db/mongodb-introduction#wire-protocol-compatibility
upvoted 2 times
...
...
DeveshSolanki
4 years, 11 months ago
Yes... Box1 Database & Box2 MongoDB API
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 ...