Practice
1. In an API gateway request flow, at step 3 the gateway inspects the
Accept header to determine API version. What happens if the header is missing or malformed at this step?easy
Solution
Step 1: Trace gateway header validation at step 3
The gateway requires a validAcceptheader for content negotiation versioning; missing or malformed headers violate protocol.Step 2: Understand failure handling
To avoid ambiguous routing or unintended version fallback, the gateway rejects invalid requests with 400 errors rather than guessing versions.Final Answer:
Option A -> Option AQuick Check:
Missing Accept header triggers 400 error at gateway [check]
Hint: Missing Accept header -> gateway rejects request [check]
Common Mistakes:
2. In the web crawler's request flow, at Step 5 the Duplicate Detection component receives a URL. What happens if this URL has been seen before?
easy
Solution
Step 1: Understand Duplicate Detection behavior at Step 5
If the URL has been seen before, it is filtered out to prevent redundant crawling.Step 2: Eliminate other options
Re-queuing duplicates wastes resources; marking for delayed re-crawl is a separate process; Politeness Policy Manager handles timing, not duplication.Final Answer:
Option A -> Option AQuick Check:
Duplicate Detection discards seen URLs to avoid redundancy [check]
Hint: Duplicate Detection discards duplicates before scheduling [OK]
Common Mistakes:
3. For a video calling system targeting mobile clients with intermittent connectivity, which architecture best balances latency and reliability for media delivery?
medium
Solution
Step 1: Evaluate architectures for mobile intermittent connectivity
Pure peer-to-peer (A) suffers from connectivity issues; MCU (C) adds latency and CPU overhead; HLS (D) is high latency and not real-time.Step 2: SFU (B) relays streams selectively, reducing latency and handling network variability well.
Final Answer:
Option C -> Option CQuick Check:
SFU balances latency and reliability for mobile intermittent networks [check]
Hint: SFU relays selectively, best for mobile intermittent connectivity [check]
Common Mistakes:
4. If the trace context extraction component is missing in a downstream service, what is the exact failure observed in the distributed trace?
medium
Solution
Step 1: Understand missing context extraction impact
Without extracting trace context, the downstream service cannot link its spans to the parent trace, so it starts a new root trace, breaking the trace continuity.Step 2: Eliminate other failure modes
Spans are not merged incorrectly; they are disconnected. Spans are still recorded locally, so not lost entirely. Trace collector accepts spans but sees them as separate traces.Final Answer:
Option A -> Option AQuick Check:
Missing extraction causes new root trace, breaking linkage [check]
Hint: No extraction -> new root trace breaks parent-child links [OK]
Common Mistakes:
5. For a faceted search system with frequent filter updates and millions of documents, which architecture better balances update latency and query freshness?
medium
Solution
Step 1: Compare update latency and query freshness trade-offs
Batch rebuilds have high latency; synchronous writes hurt write throughput; static monthly refresh is too stale.Step 2: Identify near-real-time indexing benefits
Streaming updates asynchronously balances freshness and throughput, allowing queries to see recent changes with low delay.Final Answer:
Option A -> Option AQuick Check:
Near-real-time streaming -> balanced freshness and update latency [check]
Hint: Near-real-time streaming balances freshness and throughput [check]
Common Mistakes:
