Medium1 markMultiple Choice

AZ-305 · Question 30 · Domain 2.4: Design a Data Storage Solution for Non-Relational Data

You are designing a globally distributed social media application using Azure Cosmos DB.

Users frequently post updates and immediately refresh their feeds. A user must always see their own posts immediately after writing them. However, it is acceptable if other users across the globe see the post with a slight delay. You need to select a consistency level that meets these requirements while maximizing performance and availability.

Which consistency level should you recommend?

Answer options:

A.

Strong

B.

Bounded Staleness

C.

Session

D.

Eventual

How to approach this question

Look for the phrase 'user must always see their own posts immediately'. This is the classic definition of 'read-your-own-writes', which maps to Session consistency.

Full Answer

C.Session✓ Correct
Session
Session consistency is the most widely used consistency level for globally distributed applications. It provides 'read-your-own-writes' guarantees, ensuring that a user will always see the data they just wrote during their session. Other users may see the data slightly later. This provides an excellent balance of performance, availability, and intuitive user experience.

Common mistakes

Choosing Strong consistency, which would cause massive latency for a globally distributed social media app because a write must be committed across all regions before acknowledging.

Practice the full Azure Solutions Architect Expert AZ-305 Practice Exam 4

55 questions · hints · full answers · grading

More questions from this exam