Practice
Solution
Step 1: Understand Feed Generator error handling
Discarding (A) loses data silently; pausing and retrying (B) blocks the pipeline indefinitely; crashing (D) causes system downtime.Step 2: Dead-letter queue usage
Sending malformed messages to a dead-letter queue (C) isolates bad data for manual or automated inspection without blocking the main pipeline.Final Answer:
Option A -> Option AQuick Check:
Dead-letter queue isolates bad messages without blocking processing [check]
Solution
Step 1: Analyze architecture requirements
Low latency and high availability require partitioning to avoid bottlenecks and asynchronous replication to avoid blocking on failover.Step 2: Evaluate options
Use a single centralized matching engine with synchronous replication to a hot standby blocks on synchronous replication causing latency; Use multiple independent matching engines with eventual consistency and conflict resolution risks conflicts and inconsistent order books; Use a cloud-managed database with built-in failover and no dedicated matching engine lacks dedicated matching engine causing latency and complexity.Final Answer:
Option A -> Option AQuick Check:
Partitioned matching engine + async replication -> low latency + availability [check]
Solution
Step 1: Analyze latency and update frequency constraints
High volume requires low latency for common intents and flexibility for complex queries.Step 2: Evaluate architectures
A single large LLM (A) has high latency and update overhead. Multiple replicas (C) improve throughput but still synchronous latency is high. Batch offline (D) delays updates and user experience. Lightweight classifier with async LLM fallback (B) balances fast routing and complex understanding.Final Answer:
Option C -> Option CQuick Check:
Lightweight classifier + async LLM fallback balances latency and accuracy [check]
Solution
Step 1: Identify scaling impact on Bloom filter components
At very high scale, hash function computation cost increases linearly with insertions, becoming a CPU bottleneck.Step 2: Evaluate other components
Bit array saturation affects false positives but does not cause immediate failure; network and client latency scale better.Final Answer:
Option C -> Option CQuick Check:
Hash function CPU cost grows linearly, causing first failure at scale [check]
Solution
Step 1: Identify cluster management role
Cluster management node coordinates slot assignments and node membership changes.Step 2: Analyze scaling impact
At 10x scale, centralized management node becomes bottleneck due to coordination overhead (The cluster management node, because it handles all slot reassignments centrally).Step 3: Eliminate other options
Network bandwidth (A) and Redis nodes (D) scale better; client slot cache (C) is local and does not cause cluster-wide bottleneck.Final Answer:
Option C -> Option CQuick Check:
Centralized cluster manager -> coordination bottleneck at large scale [check]
