0
0
Azurecloud~20 mins

Cosmos DB overview and use cases in Azure - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Cosmos DB Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Cosmos DB Consistency Levels
Which Cosmos DB consistency level guarantees the highest data consistency but may impact latency and availability?
AStrong consistency
BBounded staleness consistency
CSession consistency
DEventual consistency
Attempts:
2 left
💡 Hint
Think about the trade-off between consistency and latency in distributed databases.
Architecture
intermediate
2:00remaining
Choosing Cosmos DB API for a Use Case
You need to build a globally distributed application that stores JSON documents and requires rich querying capabilities. Which Cosmos DB API should you choose?
ASQL (Core) API
BCassandra API
CGremlin API
DTable API
Attempts:
2 left
💡 Hint
Consider which API is optimized for JSON document storage and querying.
service_behavior
advanced
2:00remaining
Impact of Partition Key Choice on Cosmos DB Performance
What is the most likely impact of choosing a partition key with low cardinality in Cosmos DB?
AAutomatic scaling of storage without performance impact
BHot partition causing throttling and reduced performance
CImproved write throughput due to even data distribution
DIncreased consistency across regions
Attempts:
2 left
💡 Hint
Think about how data distribution affects load balancing in Cosmos DB.
security
advanced
2:00remaining
Securing Access to Cosmos DB Data
Which method provides the most secure way to grant an application read-only access to a Cosmos DB container without exposing the master key?
AUse the master key directly in the application code
BEnable IP firewall rules only
CUse the primary key with read permissions
DCreate a read-only resource token scoped to the container
Attempts:
2 left
💡 Hint
Consider least privilege and key exposure risks.
Best Practice
expert
2:00remaining
Optimizing Cosmos DB for Global Distribution and Latency
You have a Cosmos DB account replicated in multiple regions worldwide. To minimize read latency for users globally, which configuration should you enable?
AEnable multi-master write regions with single write region
BUse strong consistency across all regions
CConfigure preferred regions for read requests in the SDK
DDisable automatic failover
Attempts:
2 left
💡 Hint
Think about how the SDK can direct read requests to the nearest region.