Questions: Read-After-Write Consistency

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

User A updates their profile photo. Three seconds later, User A reloads the page and sees their old photo. Ten seconds later, User B sees the old photo. Which consistency guarantee does this scenario violate, and which does it not?

AIt violates linearizability but not read-after-write consistency, because linearizability covers all clients
BIt violates eventual consistency, because the system has not yet converged after a sufficient delay
CIt violates read-after-write consistency (User A saw stale data on their own subsequent read) but not necessarily linearizability (which requires global ordering of all operations)
DIt violates monotonic read consistency because User B saw a value different from what User A saw
Question 2 Multiple Choice

Why is read-after-write consistency dramatically cheaper to implement than linearizability in a replicated database?

ARaW uses fewer replicas for fault tolerance, reducing the infrastructure cost
BRaW does not require any coordination between nodes, since each client handles its own reads independently
CRaW only requires coordination within a single client's session — routing that client's reads to an up-to-date node — while linearizability requires global ordering of every operation across all clients
DRaW applies only to read operations, so writes proceed without any consistency overhead
Question 3 True / False

Read-after-write consistency guarantees that after you write a value, most clients reading the system will immediately see your write.

TTrue
FFalse
Question 4 True / False

One correct implementation of read-after-write consistency involves the client tracking the version of its last write and requiring any replica serving its reads to have at least that version before responding.

TTrue
FFalse
Question 5 Short Answer

Explain why read-after-write consistency captures the most important user expectation in replicated systems while being much cheaper than strong consistency (linearizability).

Think about your answer, then reveal below.