Practice
1. In an Elasticsearch query flow, at Step 4 the Coordinating Node receives partial results from all shards. What does the Coordinating Node do at this step before returning the final response?
easy
Solution
Step 1: Understand Coordinating Node role at Step 4
The Coordinating Node collects partial results from primary and replica shards and merges them.Step 2: Eliminate incorrect actions
Master Node does not aggregate query results; caching is handled elsewhere; querying replicas again is unnecessary for consistency at this stage.Final Answer:
Option A -> Option AQuick Check:
Coordinating Node merges and sorts shard results [check]
Hint: Coordinating Node merges shard results before response [check]
Common Mistakes:
2. For a system with frequent feature toggles and multiple teams deploying daily, which approach best balances deployment speed and risk mitigation?
medium
Solution
Step 1: Identify constraints
Frequent deployments and multiple teams require fast, low-risk releases.Step 2: Evaluate options
Blue-Green alone is heavy for frequent deploys; Canary alone lacks feature granularity; Rolling with manual rollback is slow and risky.Step 3: Combine Feature Flags and Canary
Feature Flags enable gradual feature exposure; Canary controls version rollout risk.Final Answer:
Option C -> Option CQuick Check:
Feature Flags + Canary balance speed and risk for frequent deploys [check]
Hint: Feature Flags + Canary = fast, safe multi-team deploys [OK]
Common Mistakes:
3. For a video calling system targeting mobile clients with intermittent connectivity, which architecture best balances latency and reliability for media delivery?
medium
Solution
Step 1: Evaluate architectures for mobile intermittent connectivity
Pure peer-to-peer (A) suffers from connectivity issues; MCU (C) adds latency and CPU overhead; HLS (D) is high latency and not real-time.Step 2: SFU (B) relays streams selectively, reducing latency and handling network variability well.
Final Answer:
Option C -> Option CQuick Check:
SFU balances latency and reliability for mobile intermittent networks [check]
Hint: SFU relays selectively, best for mobile intermittent connectivity [check]
Common Mistakes:
4. For a system requiring minimal key remapping and uniform load distribution when nodes are frequently added or removed, which approach is best?
medium
Solution
Step 1: Evaluate modulo hashing with fixed partitions
Modulo hashing causes large remapping on node changes, poor for frequent changes.Step 2: Compare consistent hashing with virtual nodes
Virtual nodes spread load evenly and reduce remapping, ideal for frequent node changes.Final Answer:
Option D -> Option DQuick Check:
Virtual nodes in consistent hashing balance load and minimize remapping [check]
Hint: Virtual nodes smooth load and reduce remapping on node changes [check]
Common Mistakes:
5. At 10x scale of concurrent users, which component in a typeahead autocomplete system using Elasticsearch and Trie is most likely to become the bottleneck first, and why?
hard
Solution
Step 1: Analyze statefulness and scalability
Trie servers hold large in-memory state and are difficult to shard due to pointer-based node structures, limiting horizontal scaling.Step 2: Compare other components
Elasticsearch scales horizontally with shards; prefix hash map can be partitioned or replaced; client UI is less likely the first bottleneck at backend scale.Final Answer:
Option A -> Option AQuick Check:
Trie statefulness limits sharding -> bottleneck at scale [check]
Hint: Trie stateful, hard to shard -> first bottleneck at scale [check]
Common Mistakes:
