Practice
Solution
Step 1: Identify version isolation requirements
Embedding version in the URL path clearly separates client requests by version, preventing accidental routing to incompatible handlers.Step 2: Evaluate alternatives
Custom headers and content negotiation can be ignored or mishandled by intermediaries or caches, risking breaking changes. Query parameters are less explicit and can cause caching issues.Final Answer:
Option C -> Option CQuick Check:
URL versioning cleanly isolates versions in routing paths [check]
Solution
Step 1: Identify latency and update frequency requirements
Sub-millisecond latency and frequent updates favor in-memory stores over disk-based ones.Step 2: Evaluate Redis vs DynamoDB for ephemeral session data
Redis provides in-memory storage with eviction policies ideal for ephemeral, fast-access data; DynamoDB has higher latency due to disk persistence.Final Answer:
Option D -> Option DQuick Check:
Redis in-memory -> sub-ms latency for frequent updates [check]
Solution
Step 1: Understand role of Global Traffic Manager in failover
It dynamically routes traffic away from failed CDNs. Without it, failover must be handled elsewhere.Step 2: Trace failure without Global Traffic Manager
Origin server may attempt to redirect traffic, but this adds latency and is less dynamic than traffic manager.Step 3: Eliminate other options
Automatic client failover (A) requires client intelligence not assumed here. Clients sending to failed CDN (B) is possible but less likely if origin redirects. Edge caches (D) do not replicate across CDNs automatically.Final Answer:
Option A -> Option AQuick Check:
Without traffic manager, origin server redirects traffic causing latency and partial failover [check]
Solution
Step 1: Identify requirement for immediate feedback
Immediate success/failure feedback requires synchronous communication to confirm delivery.Step 2: Evaluate synchronous HTTP calls
Synchronous HTTP with timeouts and retries provides immediate response and error handling.Final Answer:
Option A -> Option AQuick Check:
Synchronous calls provide immediate feedback required by the system [check]
Solution
Step 1: Identify scaling bottlenecks
Physical nodes scale horizontally; network and hash function scale well with optimizations.Step 2: Analyze token metadata service
Managing many virtual nodes and frequent node changes increases metadata complexity and update frequency, causing bottlenecks.Final Answer:
Option B -> Option BQuick Check:
Token metadata service complexity grows fastest, causing first failure [check]
