Practice
Solution
Step 1: Trace circuit breaker decision at Step 4
When failure count exceeds threshold, the circuit breaker transitions to OPEN state and stops forwarding requests.Step 2: Understand behavior on open circuit
Requests are immediately failed (B), not forwarded (A), retried (C), or queued (D).Final Answer:
Option A -> Option AQuick Check:
Open circuit returns error immediately without downstream call [check]
Solution
Step 1: Understand subscriber offset semantics
The subscriber offset tracks the last consumed message. If behind, the Delivery Worker must deliver pending messages to catch up.Step 2: Delivery Worker behavior
It delivers the message at the subscriber's offset and then updates the offset to the next message. Skipping or deleting messages (Options A and C) breaks delivery guarantees. Blocking (The Delivery Worker blocks until the subscriber catches up) is unnecessary and stalls the system.Final Answer:
Option C -> Option CQuick Check:
Delivery Worker delivers and advances subscriber offset [check]
Solution
Step 1: Trace Router behavior at Step 3
Router computes scores for all nodes; unreachable nodes are excluded to avoid blocking.Step 2: Understand fallback mechanism
Router picks the highest scoring reachable node, ensuring availability and progress.Final Answer:
Option D -> Option DQuick Check:
Unreachable nodes excluded -> next highest score chosen [check]
Solution
Step 1: Analyze latency and volume constraints
High-volume streams require low-latency detection to be actionable.Step 2: Match architecture to constraints
Streaming anomaly detection with windowed models processes data continuously, enabling near real-time alerts, unlike batch or polling which add latency.Final Answer:
Option C -> Option CQuick Check:
Streaming windowed models -> low latency anomaly detection [check]
Solution
Step 1: Understand availability vs durability trade-off
Synchronous replication ensures no data loss but increases write latency and risk of blocking during failures, reducing availability.Step 2: Evaluate asynchronous replication trade-offs
Asynchronous replication reduces write latency and improves availability but risks losing recent writes on failover, acceptable for 99.9% availability.Final Answer:
Option A -> Option AQuick Check:
Async replication -> lower latency, possible data loss, fits 99.9% availability [check]
