
Azure Cosmos DB supports multiple APIs, each aligned to a specific data model:
Gremlin API
Designed for graph data.
Stores vertices (nodes) and edges (relationships).
Query language: Gremlin.
Correct mapping: Graph data.
MongoDB API
Designed for document data using JSON.
Supports MongoDB wire protocol.
Correct mapping: JSON documents.
Table API
Designed for key-value data.
Compatible with Azure Table Storage.
Correct mapping: Key/value data.
Cassandra API
Designed for wide-column (column-family) data.
Uses CQL (Cassandra Query Language).
Not listed in the answer area, but if included, it maps to columnar data, not the options shown here.
Correct Mapping:
Graph data → Gremlin API
JSON documents → MongoDB API
Key/value data → Table API
Microsoft References
APIs in Azure Cosmos DB
Choose the right API for Azure Cosmos DB