Practice
Solution
Step 1: Trace Intent Classifier decision at Step 5
When confidence is low, the system logs the query and triggers fallback notification asynchronously to avoid blocking.Step 2: Confirm fallback handling behavior
Immediate human routing (A) blocks scalability. Forwarding directly (B) is plausible but synchronous. Discarding (C) harms UX. Logging and async notification (D) balances reliability and responsiveness.Final Answer:
Option A -> Option AQuick Check:
Low confidence -> async fallback notification and logging [check]
Solution
Step 1: Evaluate architectures for traffic spike handling
Centralized origin (Centralized origin server cluster with global load balancer) risks overload and latency spikes. Peer-to-peer (Peer-to-peer streaming where clients share video chunks directly) depends on client availability and is complex for global scale. Independent origins without caching (Multiple independent origin servers in each region without caching) lack scalability and increase origin load.Step 2: Assess hierarchical CDN benefits
Regional edge caches (Hierarchical CDN with regional edge caches and origin fallback) absorb traffic spikes locally, reducing origin load and latency, providing scalable and resilient delivery.Final Answer:
Option A -> Option AQuick Check:
Hierarchical CDN absorbs regional spikes with low latency [check]
Solution
Step 1: Evaluate development overhead vs scaling needs
Serverless reduces initial infrastructure management overhead by outsourcing scaling and deployment.Step 2: Consider future scaling and limitations
Serverless can limit control and cause cold start latency, but suits rapid early development with limited traffic.Final Answer:
Option C -> Option CQuick Check:
Serverless minimizes early overhead but may limit control later [check]
Solution
Step 1: Identify scaling bottlenecks
Central metadata service (The central shard metadata service, due to increased coordination overhead) may be distributed or avoided; shards (The individual database shards, because storage capacity limits are reached first) scale horizontally; client caches (The client-side routing cache, as it cannot handle the increased number of shards efficiently) can be sharded or refreshed incrementally.Step 2: Analyze hash ring management at scale
Hash ring management (The hash ring management service, because updating and propagating ring changes becomes a bottleneck) requires updating and propagating ring changes to all nodes; at 10x scale, this coordination overhead and update frequency cause it to become the first bottleneck.Final Answer:
Option C -> Option CQuick Check:
Hash ring updates bottleneck first at large scale [check]
Solution
Step 1: Analyze scaling bottlenecks
Expiration Worker scans all snippets to delete expired ones; at 10x scale, scan latency grows linearly.Step 2: Compare other components
Relational DB (A) is not primary storage; key-value stores (C) shard well; Kafka (D) scales with partitioning but expiration scanning is a linear bottleneck.Final Answer:
Option C -> Option CQuick Check:
Expiration scanning is linear and slows down first at scale [check]
