Practice
Solution
Step 1: Trace Inventory Service state at step 4
The Inventory Service relies on confirmed reservation events to update availability. Pending reservations may not yet be reflected.Step 2: Understand event-driven state updates
Without confirmation, Inventory cannot mark the room as unavailable. It waits for Reservation Service confirmation events to update state, so availability is unknown until then.Final Answer:
Option D -> Option DQuick Check:
Inventory waits for confirmation events before updating availability [check]
Solution
Step 1: Understand coordinator role in Cassandra write path
The coordinator routes writes to all replicas responsible for the partition key; if one replica is down, it routes to the others.Step 2: Evaluate failure handling
Writes are not failed immediately if a replica is down; coordinator does not retry indefinitely on the same node; no fallback to relational DB.Final Answer:
Option C -> Option CQuick Check:
Coordinator routes writes to available replicas -> ensures write availability [check]
Solution
Step 1: Analyze concurrency and latency requirements
High traffic and low latency require minimizing blocking and centralized bottlenecks.Step 2: Evaluate architectures
Centralized DB serializable transactions cause contention and latency; message queue serialization adds delay; client-side locking is unreliable. Distributed cache with optimistic locking allows concurrent attempts with retries, balancing consistency and performance.Final Answer:
Option D -> Option DQuick Check:
Optimistic locking in distributed cache balances concurrency and consistency [check]
Solution
Step 1: Role of consensus in failover
Consensus prevents split-brain by ensuring only one leader accepts writes.Step 2: Consequence of missing consensus
Without consensus, multiple nodes may accept writes simultaneously, causing data divergence.Final Answer:
Option B -> Option BQuick Check:
Consensus absence leads to split-brain and inconsistent writes [check]
Solution
Step 1: Evaluate cultural impact of blame vs blameless approaches
Blame-focused reports create fear and reduce openness, harming continuous improvement.Step 2: Assess effectiveness of blameless timelines with action items
They foster trust, encourage learning, and drive actionable improvements aligned with high-trust culture.Final Answer:
Option A -> Option AQuick Check:
Blameless + action items -> continuous improvement [check]
