Practice
Solution
Step 1: Understand shadow mode request routing
Shadow mode runs new models in parallel without affecting live traffic. So, requests are sent to both models.Step 2: Identify response behavior
Only the production model's prediction is returned to the client; shadow model predictions are logged for evaluation.Final Answer:
Option A -> Option AQuick Check:
Shadow mode duplicates requests but returns production output [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 reconciliation service role
It ensures debit and credit entries match before confirming transactions to users.Step 2: Analyze failure impact
Blocking all transactions (B) reduces availability unnecessarily; silent accumulation (A) risks unnoticed errors; committing debit only (D) breaks double-entry. Marking transactions pending (C) delays confirmation but preserves consistency.Final Answer:
Option A -> Option AQuick Check:
Pending status delays confirmation -> preserves ledger integrity [check]
Solution
Step 1: Compare consistent hashing and rendezvous hashing
Both minimize remapping, but consistent hashing with virtual nodes better smooths load across nodes, especially with frequent changes.Step 2: Evaluate centralized directory and modulo hashing
Centralized directory adds latency and single point of failure; modulo hashing causes massive remapping and manual rebalancing overhead.Final Answer:
Option C -> Option CQuick Check:
Virtual nodes in consistent hashing smooth load and minimize remapping [check]
Solution
Step 1: Understand Ticket Server crash impact
If the server crashes post-allocation but pre-acknowledgment, it cannot confirm the block was assigned.Step 2: Trace ID block state
The allocated block is effectively lost, causing gaps in the global ID sequence, but clients do not reuse lost blocks, preventing duplicates.Final Answer:
Option B -> Option BQuick Check:
Crash after allocation -> lost ID blocks, no duplicates [check]
