Develop Solutions That Use Cosmos DB 7&8&9&10 Flashcards
What is the default consistency level recommended for most applications in Azure Cosmos DB?
a) Strong
b) Bounded Staleness
c) Session
d) Eventual
c) Session
What is the primary effect of using Strong consistency in Azure Cosmos DB?
a) It doubles the cost of RUs for each query
b) It provides the highest throughput with eventual consistency
c) It allows for dirty reads
d) It reduces latency for reads on recently written data
a) It doubles the cost of RUs for each query
What is the primary benefit of using Bounded Staleness consistency in Azure Cosmos DB?
a) It guarantees order with minimal latency
b) It provides the highest throughput with eventual consistency
c) It allows for dirty reads
d) It reduces the cost of RUs for each query
a) It guarantees order with minimal latency
What is the primary characteristic of Eventual consistency in Azure Cosmos DB?
a) It guarantees no dirty reads
b) It provides the highest throughput but may result in stale or out-of-order data
c) It doubles the cost of RUs for each query
d) It ensures immediate consistency across all regions
b) It provides the highest throughput but may result in stale or out-of-order data
What is the primary purpose of Consistent Prefix consistency in Azure Cosmos DB?
a) It ensures that all writes are available simultaneously after a transaction completes
b) It provides the highest throughput with eventual consistency
c) It allows for dirty reads
d) It reduces the cost of RUs for each query
a) It ensures that all writes are available simultaneously after a transaction completes
What is the primary benefit of using a private endpoint for Azure Cosmos DB?
a) It allows public access to the Cosmos DB account
b) It limits traffic to internal or private IP addresses, preventing public access
c) It reduces the cost of storage
d) It increases the durability of stored data
b) It limits traffic to internal or private IP addresses, preventing public access
What is the maximum backup interval for Azure Cosmos DB backup policies?
a) 1 hour
b) 12 hours
c) 24 hours
d) 48 hours
c) 24 hours
What is the primary benefit of using Geo-Redundant backup storage in Azure Cosmos DB?
a) It reduces the cost of storage
b) It provides backup storage across multiple regions for higher availability
c) It simplifies the process of writing stored procedures
d) It increases the durability of stored data
b) It provides backup storage across multiple regions for higher availability
What is the primary purpose of using a customer-managed key for encryption in Azure Cosmos DB?
a) To reduce the cost of storage
b) To allow Azure to manage the encryption key
c) To provide more control over the encryption key used for data at rest
d) To simplify the process of writing stored procedures
c) To provide more control over the encryption key used for data at rest
What is the primary benefit of using Continuous (30 days) backup policy in Azure Cosmos DB?
a) It provides a backup window of 7 days
b) It provides a backup window of 30 days with the ability to restore to any point within the window
c) It reduces the cost of storage
d) It simplifies the process of writing stored procedures
b) It provides a backup window of 30 days with the ability to restore to any point within the window
What is the primary effect of using Session consistency in Azure Cosmos DB?
a) It guarantees no dirty reads
b) It allows applications to read their own writes within a session
c) It doubles the cost of RUs for each query
d) It provides the highest throughput with eventual consistency
b) It allows applications to read their own writes within a session
What is the primary benefit of using Locally-Redundant backup storage in Azure Cosmos DB?
a) It provides backup storage across multiple regions
b) It reduces the cost of storage for single-region backups
c) It simplifies the process of writing stored procedures
d) It increases the durability of stored data
b) It reduces the cost of storage for single-region backups