Practice
Solution
Step 1: Understand Worker Node behavior at Step 4
The Worker Node must respect the scheduled execution time; executing early (A) violates correctness; re-queuing (B) risks duplicate tasks; skipping (C) ignores the task indefinitely.Step 2: Identify failure handling
Marking the task as failed (D) triggers retry or alert mechanisms, ensuring no premature execution and visibility into scheduling issues.Final Answer:
Option A -> Option AQuick Check:
Premature tasks are failed to prevent early execution [check]
Solution
Step 1: Understand TCP congestion control on timeout
When a retransmission timeout occurs, TCP interprets it as network congestion and reduces the congestion window to the slow-start threshold.Step 2: Confirm congestion window behavior
The congestion window is reset to a lower value to reduce sending rate, avoiding further congestion.Final Answer:
Option D -> Option DQuick Check:
Timeout triggers congestion window reduction to slow-start threshold [check]
Solution
Step 1: Understand KSUID structure at step 4
KSUIDs combine a 4-byte timestamp prefix with a 16-byte random payload to ensure uniqueness and sortability.Step 2: Eliminate incorrect states
Deterministic timestamp only (A) lacks uniqueness; UUIDv4 (C) is unrelated; sequential number (D) is not part of KSUID design.Final Answer:
Option C -> Option CQuick Check:
KSUID = timestamp + random payload for uniqueness and sortability [check]
Solution
Step 1: Trace message flow without Kafka
Without Kafka, Chat Server A must synchronously contact Bob's server. If Bob's server is slow, Alice's send blocks; if Bob's server crashes, no retry or persistence exists.Step 2: Eliminate unrelated failure modes
Encryption issues (A) unrelated to Kafka. Duplication (C) and UI false delivery (D) are mitigated by Kafka's ordering and delivery semantics but not the primary failure here.Final Answer:
Option A -> Option AQuick Check:
No Kafka -> synchronous send blocks and message loss on Bob crash [check]
Solution
Step 1: Identify stateful bottlenecks at scale
Personalization retraining (Personalization service because recommendation model retraining becomes too slow) can be scaled horizontally with distributed training. Origin storage (Origin servers because storage I/O bandwidth saturates under high request volume) can be scaled with sharding and CDN caching. Client devices (Client devices because decoding multiple bitrate streams consumes excessive CPU) are outside server control.Step 2: Analyze CDN edge server scaling challenges
WebSocket connections for adaptive streaming are stateful and bound to specific edge servers, limiting horizontal scaling and resharding, causing edge server overload at 10x scale.Final Answer:
Option C -> Option CQuick Check:
Stateful WebSocket limits CDN edge server scalability [check]
