Develop Solutions That Use Cosmos DB 11 Flashcards

1
Q

What is the primary purpose of partitioning in Azure Cosmos DB?

a) To reduce the cost of storage
b) To optimize read and write throughput by distributing data evenly
c) To simplify the process of writing stored procedures
d) To increase the durability of stored data

A

b) To optimize read and write throughput by distributing data evenly

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

What is the primary characteristic of a logical partition in Azure Cosmos DB?

a) It is physically separated across different SSD storage
b) It groups data with the same partition key together
c) It allows for cross-partition queries
d) It is limited to 10,000 RUs of throughput

A

b) It groups data with the same partition key together

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

What is the primary limitation of a physical partition in Azure Cosmos DB?

a) It can only store up to 10 GB of data
b) It is limited to 10,000 RUs of throughput and 50 GB of storage
c) It cannot be changed once created
d) It requires manual configuration by the developer

A

b) It is limited to 10,000 RUs of throughput and 50 GB of storage

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

What is the primary consequence of a hot partition in Azure Cosmos DB?

a) It reduces the cost of storage
b) It causes uneven data distribution and slows down queries
c) It simplifies the process of writing stored procedures
d) It increases the durability of stored data

A

b) It causes uneven data distribution and slows down queries

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

What is the primary purpose of a partition key in Azure Cosmos DB?

a) To reduce the cost of storage
b) To group data logically for optimized query performance
c) To simplify the process of writing stored procedures
d) To increase the durability of stored data

A

b) To group data logically for optimized query performance

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

What is the primary benefit of using a high cardinality partition key for write-heavy workloads in Azure Cosmos DB?

a) It reduces the cost of storage
b) It ensures even distribution of data across physical partitions
c) It simplifies the process of writing stored procedures
d) It increases the durability of stored data

A

b) It ensures even distribution of data across physical partitions

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

What is the primary challenge of using a low cardinality partition key in Azure Cosmos DB?

a) It increases the cost of storage
b) It can lead to hot partitions and uneven data distribution
c) It simplifies the process of writing stored procedures
d) It increases the durability of stored data

A

b) It can lead to hot partitions and uneven data distribution

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

What is the primary purpose of a synthetic partition key in Azure Cosmos DB?

a) To reduce the cost of storage
b) To group similar data together with a composite key
c) To simplify the process of writing stored procedures
d) To increase the durability of stored data

A

b) To group similar data together with a composite key

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

What is the primary benefit of indexing in Azure Cosmos DB?

a) It reduces the cost of storage
b) It optimizes query performance by defining exact search locations
c) It simplifies the process of writing stored procedures
d) It increases the durability of stored data

A

b) It optimizes query performance by defining exact search locations

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

What is the primary consequence of a cross-partition scan in Azure Cosmos DB?

a) It reduces the cost of storage
b) It causes queries to hit all partitions, leading to slower performance
c) It simplifies the process of writing stored procedures
d) It increases the durability of stored data

A

b) It causes queries to hit all partitions, leading to slower performance

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

What is the primary limitation of changing a partition key in Azure Cosmos DB?

a) It cannot be changed once the container is created
b) It requires manual reconfiguration of physical partitions
c) It increases the cost of storage
d) It simplifies the process of writing stored procedures

A

a) It cannot be changed once the container is created

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

What is the primary benefit of using a composite index in Azure Cosmos DB?

a) It reduces the cost of storage
b) It optimizes query performance for specific fields
c) It simplifies the process of writing stored procedures
d) It increases the durability of stored data

A

b) It optimizes query performance for specific fields

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