Practice
Solution
Step 1: Understand Context Manager role at Step 4
It must prepare input within the LLM's token window limit to avoid rejection.Step 2: Analyze behavior on exceeding token limit
Sending full history (B) causes LLM errors; splitting requests (C) breaks context continuity; caching and manual intervention (D) is impractical. Truncation (A) preserves recent context within limits.Final Answer:
Option A -> Option AQuick Check:
Context Manager truncates oldest messages to fit token window [check]
Solution
Step 1: Understand Query Coordinator's merge logic
The coordinator merges partial results from all shards; if a shard times out, its data is excluded to avoid blocking the entire query.Step 2: Eliminate other options
Returning an error breaks availability; marking missing facets as zero is inaccurate; synchronous retries would increase latency.Final Answer:
Option A -> Option AQuick Check:
Timeout shard data excluded -> partial but available results [check]
Solution
Step 1: Identify DAU Estimator role
DAU Estimator provides daily active user count critical for bandwidth calculations as bandwidth depends on total active users.Step 2: Eliminate other options
The system cannot estimate peak QPS, causing under-provisioning of servers is incorrect because peak QPS depends on instantaneous requests, not just DAU; Storage estimation becomes inaccurate because DAU is a key multiplier for daily data volume is partially true but storage depends more on total objects, not DAU alone; User authentication fails because DAU tracks active sessions is unrelated to authentication.Final Answer:
Option A -> Option AQuick Check:
Bandwidth depends directly on DAU for total data transfer [check]
Solution
Step 1: Analyze latency and consistency needs
Real-time games require fast access to player state with strong consistency.Step 2: Evaluate architecture trade-offs
Stateful servers with in-memory state reduce latency and allow immediate state updates; periodic persistence balances durability.Final Answer:
Option D -> Option DQuick Check:
Stateful in-memory state + persistence -> low latency, consistent [check]
Solution
Step 1: Analyze scaling impact on components
Query parser scales well with parallelism; DF updater can be sharded; ranking scales with candidate pruning.Step 2: Identify inverted index storage bottleneck
Inverted index storage faces increased random disk seeks as index grows, causing latency spikes; disk I/O is harder to scale linearly than CPU or memory.Final Answer:
Option B -> Option BQuick Check:
Disk I/O random seeks in inverted index storage bottleneck first [check]
