Practice
Solution
Step 1: Identify the importance of requirements gathering
Clarifying requirements and constraints defines the problem scope, preventing wasted effort on irrelevant details.Step 2: Eliminate premature design steps
Starting with database design or coding ignores the need to understand what to build, risking misaligned solutions.Final Answer:
Option C -> Option CQuick Check:
Clarify scope first -> focused design [check]
Solution
Step 1: Analyze client compatibility and connectivity constraints
Mobile clients often have intermittent connectivity and limited support for gRPC streaming.Step 2: Evaluate streaming options
gRPC streaming (A) has limited mobile support; WebSockets (C) require complex reconnection; long polling (D) adds latency and overhead. SSE (B) supports automatic reconnection and is widely supported on mobile.Final Answer:
Option D -> Option DQuick Check:
HTTP/2 SSE balances latency and mobile client compatibility [check]
Solution
Step 1: Evaluate architectures for latency and availability
Monolithic (A) and single server batch reload (C) block requests during reload, increasing latency. Client-side loading (D) adds complexity and inconsistent versions.Step 2: Understand blue-green deployment benefits
Blue-green (B) runs two clusters; new model loads on inactive cluster, then traffic switches atomically, ensuring zero downtime and minimal latency impact.Final Answer:
Option C -> Option CQuick Check:
Blue-green enables atomic switch with zero downtime [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 stateful components limiting scale
API gateway servers maintain stateful TLS sessions per client, limiting horizontal scaling.Step 2: Compare with other components
Databases can be scaled with sharding; retry queues are bounded; external API limits cause delays but not immediate failure.Final Answer:
Option C -> Option CQuick Check:
Stateful TLS sessions limit API gateway horizontal scaling [check]
