🃏 Storage & Security Flashcards

Practice Cosmos DB, Blob Storage, and security concepts for AZ-204.

Card 1 of 5

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

1

Q: What are the five Cosmos DB consistency levels?

A: Strong, Bounded Staleness, Session (default), Consistent Prefix, and Eventual. Ordered from strongest to weakest.

2

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.

3

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.

4

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.

5

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

More AZ-204 Flashcard Decks