Practice
Solution
Step 1: Trace Delivery Worker decision at Step 4 -- Bob's presence TTL
If TTL expired, recipient is offline; message can't be delivered immediately.Step 2: Understand offline delivery handling
Delivery Worker queues message for later delivery and marks status as 'sent but not delivered' to reflect state.Final Answer:
Option A -> Option AQuick Check:
Expired TTL -> queue message, status 'sent but not delivered' [check]
Solution
Step 1: Understand memory constraints and error tolerance
Storing all user IDs explicitly (Redis or relational DB) is memory-heavy and not scalable for large user bases.Step 2: Identify HyperLogLog's role
HyperLogLog provides approximate unique counts with fixed small memory and tunable error, ideal for large-scale cardinality estimation.Final Answer:
Option C -> Option CQuick Check:
HyperLogLog trades accuracy for memory efficiency [check]
Solution
Step 1: Trace failure impact of Progress Worker crash
Progress Worker crash before persistence means recent watch time is lost.Step 2: Evaluate user experience on resume
System detects missing progress update and returns error preventing continuation (User receives an error message preventing course continuation until retry), rather than silently resetting or duplicating progress.Final Answer:
Option C -> Option CQuick Check:
Crash causes error blocking course continuation until retry [check]
Solution
Step 1: Analyze network conditions and protocol features
Mobile lossy networks benefit from QUIC's UDP-based transport which avoids TCP head-of-line blocking and has faster loss recovery.Step 2: Compare HTTP versions
HTTP/1.1 TCP suffers head-of-line blocking; HTTP/2 multiplexing still uses TCP and inherits its limitations; HTTP/3 with QUIC improves latency and reliability on lossy links.Final Answer:
Option D -> Option DQuick Check:
HTTP/3 QUIC reduces head-of-line blocking on lossy networks [check]
Solution
Step 1: Understand modular hashing failure on node removal
Modular hashing requires remapping all keys, causing performance degradation and cache misses.Step 2: Evaluate options
The system automatically replicates keys to other nodes without delay incorrectly assumes automatic replication without delay; Clients continue to query the removed node causing request failures is invalid as clients rely on updated routing.Final Answer:
Option B -> Option BQuick Check:
Without consistent hashing, remapping causes cache stampede, no instant replication [check]
