Microsoft Azure Developer Associate AZ-204 Practice Question
You are designing a microservice that stores user shopping carts in an Azure Cosmos DB account configured with multiple read regions. Each user must always see their most recent updates immediately after they are written, but global read latency must be as low as possible and cross-user strong consistency is unnecessary. Which consistency level meets these requirements?
Session consistency provides read-your-writes, monotonic reads, monotonic writes, and write-follows-reads guarantees within a single client session, so a user always sees their own latest cart changes. Because the guarantee is scoped to the session, the database can serve reads from the nearest replica, keeping latency low. Strong consistency would satisfy all users but incurs the highest latency across regions. Bounded staleness limits lag to a configured window but does not guarantee that a read immediately reflects the caller's last write. Consistent prefix preserves the order of writes yet can still return data that is missing the most recent update, violating the requirement.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What are the different consistency levels in Azure Cosmos DB?
Open an interactive chat with Bash
Why is session consistency better suited than strong consistency in this scenario?
Open an interactive chat with Bash
What factors influence read latency in Azure Cosmos DB?
Open an interactive chat with Bash
Microsoft Azure Developer Associate AZ-204
Develop for Azure storage
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .