nerdexam
MicrosoftMicrosoft

AZ-305 · Question #236

AZ-305 Question #236: Real Exam Question with Answer & Explanation

The correct answer is C: Gremlin. Azure Cosmos DB is a multi-model globally distributed NoSQL database. Cosmos DB stores data in atom-record-sequence (ARS) format. It unites under one roof several data management systems and exposes them in the form of APIs. You can select between the Core (SQL) API and MongoDB A

Submitted by weili_xi· Mar 6, 2026Design data storage solutions

Question

Your organization has multiple Azure Cosmos DB accounts. You need to recommend what API to use for applications functionality. Which of the following API would you use to host graph-based data?

Options

  • ASQL
  • BTable
  • CGremlin
  • DCassandra
  • EMongoDB

Explanation

Azure Cosmos DB is a multi-model globally distributed NoSQL database. Cosmos DB stores data in atom-record-sequence (ARS) format. It unites under one roof several data management systems and exposes them in the form of APIs. You can select between the Core (SQL) API and MongoDB API (document model), Cassandra API (column-oriented model), Gremlin API (graph model), and Table API (key-value model). You should select the default Cosmos DB API: Core (SQL) for the new projects. If you have an existent database in formats that Cosmos DB API supports and do not want to deal with application migration, the best way is to bring the data to Cosmos DB and use provided APIs for your application. For example, suppose you have a MongoDB database with the purchase orders in different formats that are suitable for your customers. In that case, you can bring data to Cosmos DB with native MongoDB tools, like mongodump and mongorestore. And use all MongoDB queries in your apps for the data access now in Cosmos DB. But if the business logic of your application will get better data representation, for example, in a graph, you should use Gremlin API in your applications instead The graph model presents the data as vertex (an individual database item) and edge (a connection between items). To query the data, Gremlin API uses Apache Tinkerpop's Gremlin language. The data model is useful for e-commerce or fraud detection when you need to track the relation between different types of information like customers, billings, delivery addresses, payments, order history, etc. https://docs.microsoft.com/en-us/azure/cosmos-db/choose-api https://docs.microsoft.com/en-us/azure/cosmos-db/graph-introduction https://docs.microsoft.com/en-us/learn/modules/choose-api-for-cosmos-db/5-use-the-gremlin- graph-api-as-a-recommendation-engine

Community Discussion

No community discussion yet for this question.

Full AZ-305 PracticeBrowse All AZ-305 Questions