CosmosDB Flashcards
What are the different APIs avaialble from Azure Cosmos DB?
- NoSQL
- MongoDB
- PostgreSQL
- Cassandra
- Gremlin
- Table
What is the recommended choice of DB in Cosmos for Open-source releation DB with high perf and geo-replication?
Azure Cosmos DB for PostgreSQL
Which graph computing framework is Azure Cosmos DB for Gremlin based on?
Apache TikerPop
What is Partition in Cosmos Db?
When you want multiple, related documents to sit in the same partition.
What is the max RU/s limit for Physical and Logical Partition in CosmosDb?
10,000 RU/s
What is the size limit for a Physical Partition in CosmoDb?
50GB
What is a Replica Set?
Each physical partition in Cosmos DB consists of a set of replicas, also referred to as a replica set.
What is a Partition Set?
Partition set refers to a group of physical partitions that manage the same logical partition keys across multiple regions
What is a RU (Request Unit) in Cosmos Db?
The cost to do a point read (fetching a single item by its ID and partition key value) for a 1-KB item is one Request Unit (or one RU).
What are the different modes in which the consumed RU/s are charged?
- Provisioned throughput
- Serverless
- Autoscale
What is a Change feed in CosmosDB?
Change feed in Azure Cosmos DB is a persistent record of changes to a container in the order they occur. Change feed support in Azure Cosmos DB works by listening to an Azure Cosmos DB container for any changes.
What is the sort order of Change feed?
Change feed items come in the order of their modification time. This sort order is guaranteed per partition key, and there’s no guaranteed order across the partition key values.
What are the different modes for Change Feed?
- Latest version
- All Versions and Deletes mode
What are the two modes for backup in Cosmos DB?
- Continuous backup mode (7 or 30 day)
- Periodic backup mode (1hr to max 30 days)
What are the different consistency levels in CosmosDB?
- Strong
- Bounded staleness
- Session
- Consistent prefix
- Eventual