Practice
Solution
Step 1: Identify the bottleneck as CPU and memory on a single DB server
Vertical scaling adds resources to the existing server to handle more load without architectural changes.Step 2: Evaluate horizontal scaling and other options
Horizontal scaling requires application changes for sharding; caching reduces reads but not CPU-bound writes; switching DB types is a different trade-off.Final Answer:
Option B -> Option BQuick Check:
Vertical scaling adds resources to one server without code changes [check]
Solution
Step 1: Evaluate synchronous retries (A)
Retries increase latency and risk cascading failures, bad for mobile responsiveness.Step 2: Compare asynchronous queue (C) and caching (D)
Queues add delay and complexity; caching avoids calls but may serve stale data, not ideal for dynamic data.Step 3: Circuit breaker with short timeout and fallback (B)
Provides quick failure detection, prevents cascading failures, and returns fallback to maintain responsiveness.Final Answer:
Option C -> Option CQuick Check:
Circuit breaker with fallback balances isolation and responsiveness [check]
Solution
Step 1: Identify centralization bottleneck
The Ticket Server centrally allocates ID blocks and maintains allocation state, limiting horizontal scaling.Step 2: Compare other components
Clients scale horizontally; network scales with infrastructure; database load is less critical if Ticket Server caches state.Final Answer:
Option A -> Option AQuick Check:
Ticket Server centralization -> first bottleneck at 10x scale [check]
Solution
Step 1: Identify modular hashing load distribution
Modular hashing assigns keys unevenly when node count changes, causing hotspots on some cache nodes.Step 2: Analyze scaling impact
At 10x scale, hotspots cause memory exhaustion and node failures before network or metadata bottlenecks.Final Answer:
Option D -> Option DQuick Check:
Modular hashing hotspots cause node failures first at scale [check]
Solution
Step 1: Identify bottlenecks at 10x scale
Coordinator nodes handle query routing and aggregation; increased scale causes them to manage larger partitions and more requests.Step 2: Compare other components
Storage nodes scale horizontally and add disk; network bandwidth scales with infrastructure upgrades; client latency is secondary to cluster bottlenecks.Final Answer:
Option A -> Option AQuick Check:
Coordinator overload -> first failure point at 10x scale [check]
