Question
What are the five Cosmos DB consistency levels?
Click to reveal answer
Answer
Strong, Bounded Staleness, Session (default), Consistent Prefix, and Eventual. Ordered from strongest to weakest.
Click to flip back
All Storage & Security Flashcards
Q: What are the five Cosmos DB consistency levels?
A: Strong, Bounded Staleness, Session (default), Consistent Prefix, and Eventual. Ordered from strongest to weakest.
Q: What is a good partition key in Cosmos DB?
A: High cardinality, even distribution, frequently used in queries. Avoid low-cardinality fields like status or country.
Q: What is the difference between system-assigned and user-assigned managed identity?
A: System-assigned is tied to one resource and deleted with it. User-assigned is standalone and can be shared across multiple resources.
Q: How does MSAL token caching work?
A: MSAL caches access and refresh tokens. AcquireTokenSilent checks cache first; only prompts user or calls AAD if no valid cached token exists.
Q: What are the Blob Storage access tiers?
A: Hot (frequent access, higher storage cost), Cool (30+ days, lower storage cost), and Archive (180+ days, offline, rehydration required).