Copies and partitions · wrap-up
Cheat sheet & self-check
9 questions across 1 lessons. Each answer links back to the lesson it came from.
Pick an answer to see if you got it, and why.
Q1. With asynchronous replication, what is the RPO when the leader fails?
Show answer
B. Writes acknowledged but not yet shipped are lost on promotion.
From lesson 01 · Replication and consistencyQ2. "A user must see their own profile change on the next page" requires at least:
Show answer
B. It is a per-client session guarantee, much cheaper than linearizability.
From lesson 01 · Replication and consistencyQ3. In the lab, the replica had received WAL up to 0/3000108 but replayed only to 0/3000000. A read on it returned:
Q4. When the synchronous wait was cancelled, PostgreSQL warned the transaction had already committed locally. What does that imply for clients?
Show answer
B. Row 44 existed on the primary despite the error.
From lesson 01 · Replication and consistencyQ5. Why didn't statement_timeout stop the synchronous wait?
Show answer
B. The timer covers statement execution, not the commit's wait for the standby.
From lesson 01 · Replication and consistencyQ6. W + R > N guarantees:
Show answer
B. Overlap is necessary but sloppy quorums, clock-based conflict resolution and in-flight writes still break linearizability.
From lesson 01 · Replication and consistencyQ7. Which mechanism stops a paused old leader's writes even if it doesn't know it was demoted?
Show answer
B. Storage rejects writes carrying an older term number.
From lesson 01 · Replication and consistencyQ8. What turned GitHub's 43-second connectivity loss in October 2018 into about 24 hours of degradation?
Show answer
B. Promotion across regions stranded writes; integrity was chosen over fast recovery.
From lesson 01 · Replication and consistencyQ9. In the lab's failover, how many of 53 rows survived on the promoted replica?
Show answer
C. The replica was cut off before 51 writes; promotion made their loss permanent.
From lesson 01 · Replication and consistency