CosmosDB Flashcards

1
Q

What are the different APIs avaialble from Azure Cosmos DB?

A
  • NoSQL
  • MongoDB
  • PostgreSQL
  • Cassandra
  • Gremlin
  • Table
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the recommended choice of DB in Cosmos for Open-source releation DB with high perf and geo-replication?

A

Azure Cosmos DB for PostgreSQL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which graph computing framework is Azure Cosmos DB for Gremlin based on?

A

Apache TikerPop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is Partition in Cosmos Db?

A

When you want multiple, related documents to sit in the same partition.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the max RU/s limit for Physical and Logical Partition in CosmosDb?

A

10,000 RU/s

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the size limit for a Physical Partition in CosmoDb?

A

50GB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a Replica Set?

A

Each physical partition in Cosmos DB consists of a set of replicas, also referred to as a replica set.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a Partition Set?

A

Partition set refers to a group of physical partitions that manage the same logical partition keys across multiple regions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a RU (Request Unit) in Cosmos Db?

A

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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the different modes in which the consumed RU/s are charged?

A
  1. Provisioned throughput
  2. Serverless
  3. Autoscale
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a Change feed in CosmosDB?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the sort order of Change feed?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the different modes for Change Feed?

A
  1. Latest version
  2. All Versions and Deletes mode
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the two modes for backup in Cosmos DB?

A
  • Continuous backup mode (7 or 30 day)
  • Periodic backup mode (1hr to max 30 days)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are the different consistency levels in CosmosDB?

A
  • Strong
  • Bounded staleness
  • Session
  • Consistent prefix
  • Eventual
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are Synthetic Partition Keys in Azure Cosmos DB?

A

The goal is to distribute your data and workload evenly across the items associated with these partition key values. If such a property doesn’t exist in your data, you can construct a synthetic partition key.

17
Q
A