Practice
Solution
Step 1: Trace Delivery Worker decision at Step 4 -- subscriber ack delay
The worker waits for acknowledgement; if delayed beyond retry timeout, it escalates failure to alerting for manual intervention.Step 2: Eliminate other options
Marking as delivered without ack breaks reliability; deleting event loses data; scheduling retry is normal but after multiple failures escalation is needed.Final Answer:
Option A -> Option AQuick Check:
Delayed ack beyond retry timeout -> escalate alert [check]
Solution
Step 1: Identify the bottleneck as CPU and memory on a single DB server
Vertical scaling adds resources to the existing server to handle more load without architectural changes.Step 2: Evaluate horizontal scaling and other options
Horizontal scaling requires application changes for sharding; caching reduces reads but not CPU-bound writes; switching DB types is a different trade-off.Final Answer:
Option B -> Option BQuick Check:
Vertical scaling adds resources to one server without code changes [check]
Solution
Step 1: Understand Road Graph update pipeline failure impact
Without updates, live traffic data is stale; system must handle this gracefully.Step 2: Trace failure effect on ETA computation
Routing Engine does not silently use stale data (A) or crash (B); it returns errors (C) to avoid misleading ETAs; no automatic backup switch (D).Final Answer:
Option B -> Option BQuick Check:
Update pipeline failure causes routing errors, not silent stale data use [check]
Solution
Step 1: Analyze ledger database constraints
Ledger DB enforces strong consistency and atomic double-entry transactions, limiting sharding options.Step 2: Compare other components
Reconciliation (A) can be scaled asynchronously; API gateway (C) can be scaled with stateless design; Kafka (D) scales with partitioning but ledger DB consistency is harder to scale.Final Answer:
Option D -> Option DQuick Check:
Ledger DB consistency limits sharding -> first bottleneck [check]
Solution
Step 1: Identify bottleneck at scale
Edge routers handle packet forwarding at line rate; at 10x traffic, their CPU and forwarding ASICs are stressed first.Step 2: Evaluate other components
Route reflectors (A) scale better with hierarchical design; monitoring systems (C) can be scaled horizontally; client devices (D) are downstream and less critical for routing stability.Final Answer:
Option A -> Option AQuick Check:
Edge routers' CPU overload causes first failure at 10x traffic [check]
