Practice
1. A web crawler must avoid overloading a single domain by spacing requests appropriately. Which component is primarily responsible for enforcing this constraint?
easy
Solution
Step 1: Identify the role of Politeness Policy Manager
This component enforces delays between requests to the same domain to prevent overloading servers.Step 2: Eliminate other options
Duplicate Detection filters URLs but does not control timing; Scheduler balances load but does not enforce domain-specific delays; URL Frontier queues URLs but lacks timing logic.Final Answer:
Option A -> Option AQuick Check:
Politeness Policy controls request timing per domain [check]
Hint: Politeness Policy controls request timing per domain [OK]
Common Mistakes:
2. Without the seat lock expiration mechanism, what exact failure occurs during concurrent bookings?
medium
Solution
Step 1: Understand role of seat lock expiration
Expiration releases seats if payment or booking is abandoned, preventing indefinite holds.Step 2: Trace failure without expiration
Locks never expire, so seats remain reserved even if users abandon payment, reducing available seats and causing booking stalls.Final Answer:
Option B -> Option BQuick Check:
No TTL -> stale locks -> seats unavailable indefinitely [check]
Hint: No expiration -> stale locks -> seats blocked forever [OK]
Common Mistakes:
3. If the Duplicate Detection component fails silently and stops filtering URLs, what is the most immediate failure observed in the crawler system?
medium
Solution
Step 1: Trace failure impact of Duplicate Detection silent failure
Without filtering, duplicate URLs flood the system causing repeated fetches.Step 2: Eliminate other options
Scheduler overload is secondary; Politeness Policy unaffected by duplicates; URL Frontier typically handles duplicates gracefully.Final Answer:
Option D -> Option DQuick Check:
Duplicate Detection failure causes repeated URL fetches [check]
Hint: No duplicate filtering -> repeated URL fetches waste resources [OK]
Common Mistakes:
4. At 10x scale, which component is most likely to become the first bottleneck in the stock exchange system, and why?
hard
Solution
Step 1: Analyze scaling challenges
Matching Engine partitions order books per stock symbol, but large cross-symbol or large orders require coordination, causing latency and bottlenecks at scale.Step 2: Evaluate other components
Market Data Feed scales with multicast or sharding; Order Book storage uses scalable Kafka or NoSQL; network layer scales with load balancers and horizontal scaling.Final Answer:
Option D -> Option DQuick Check:
Cross-partition coordination -> Matching Engine bottleneck at scale [check]
Hint: Cross-partition coordination bottlenecks matching engine [check]
Common Mistakes:
5. At 10x traffic scale, which component in a GeoDNS-based global traffic distribution system is most likely to fail first and why?
hard
Solution
Step 1: Identify GeoDNS scaling bottleneck
GeoDNS servers handle DNS queries globally; at 10x scale, query volume spikes, and short TTLs reduce cache hits, increasing load.Step 2: Eliminate other options
Authoritative DNS servers (A) are stateless per query. Data center load balancers (C) scale horizontally and are not the first bottleneck. Network routers (D) handle Anycast well at scale.Final Answer:
Option B -> Option BQuick Check:
GeoDNS query load spikes with limited caching cause first failure [check]
Hint: GeoDNS query load spikes first due to limited caching [check]
Common Mistakes:
