DP-900 · 3.2.2 · Describe considerations for working with non-relational data on Azure
Cosmos DB APIs
Describe Azure Cosmos DB APIs
A account uses one API, which sets the data model, the query language and the client libraries.

Visual: Microsoft Learn.
You choose the API when you create the account. It sets the data model, the query language and the client libraries for the whole account, so it is a compatibility decision, not a syntax preference.
Five APIs
| API | Data model | Query with |
|---|---|---|
| documents | SQL-like syntax | |
| MongoDB | documents | MongoDB Query Language |
| Table | rows | and |
| Apache Cassandra | tables | |
| Apache | Graph, vertices and edges | Gremlin traversals |
Which one
- A new application, nothing to carry overNoSQLThe native API, recommended for new applications
- An existing MongoDB applicationMongoDBWorks with MongoDB drivers, few code changes
- An application built on TableAdds global distribution, secondary and autoscale
- A Cassandra workload to migrateApache Cassandra
- Relationships matter, such as a social networkApache Gremlin
On the exam, match the API name to its data model: documents, , or graph.
Key points
- : native API, documents, SQL-like queries, best for new apps
- MongoDB: documents, MongoDB drivers and query language
- Table: and , like
- Apache Cassandra: tables, queried with
- Apache : graph of vertices and edges, Gremlin traversals
- Per account: the API is chosen at creation, not per query
Click an underlined term for a one-line explanation, or see them all in the glossary .
Exam trap
The API is a property of the whole account. Each API has its own query language, so syntax does not run against a Table or account.
Sources · 1 Microsoft Learn page Show ▾
Checked on October 4, 2026. Report a problem
Go deeper on Microsoft Learn
Checked against Microsoft Learn on October 4, 2026. Report a problem with this card