Microsoft Azure
Azure Cosmos DB APIs
Appears inDP-900
Cosmos DB access models: NoSQL (native API, JSON documents with SQL-like queries), MongoDB, Apache Cassandra (column families, CQL), Apache Gremlin (graphs), Table (key-value), and PostgreSQL (distributed relational).
On the exam
In DP-900: new app with JSON → NoSQL; migrating apps that use MongoDB drivers → API for MongoDB; traversing relationships → Gremlin. Cosmos DB for PostgreSQL is not recommended for new projects, and the MongoDB vCore option is now called Azure DocumentDB.
Related terms
- Azure Cosmos DBAzure's globally distributed NoSQL database. It offers single-digit-millisecond latency, automatic scaling, and multiple APIs (NoSQL, MongoDB, Apache Cassandra, Apache Gremlin, Table, and PostgreSQL).
- Cosmos DB consistency levelsFive configurable levels in Azure Cosmos DB that trade off consistency against performance: Strong, Bounded Staleness, Session (the default), Consistent Prefix, and Eventual, ordered from most to least consistent and from lowest to highest availability/throughput.
- Cosmos DB Request Units (RU)A normalized measure of the CPU, memory, and I/O cost of each operation in Azure Cosmos DB. Reading a 1 KB document by its id and partition key costs about 1 RU. Throughput is provisioned in RU/s, with autoscale, or in serverless mode.