Practice
Solution
Step 1: Trace circuit breaker decision at Step 4
When failure count exceeds threshold, the circuit breaker transitions to OPEN state and stops forwarding requests.Step 2: Understand behavior on open circuit
Requests are immediately failed (B), not forwarded (A), retried (C), or queued (D).Final Answer:
Option A -> Option AQuick Check:
Open circuit returns error immediately without downstream call [check]
Solution
Step 1: Understand sliding window counter mechanics
Sliding window counters maintain timestamps of recent requests and remove those outside the window to keep an accurate count.Step 2: At step 3, old timestamps beyond the window are purged before adding the new request timestamp
This ensures the count reflects only requests within the sliding window duration.Final Answer:
Option A -> Option AQuick Check:
Sliding window removes expired timestamps before counting new requests [check]
Solution
Step 1: Understand Authorization Service behavior at token validation
The service validates token expiry and rejects expired tokens.Step 2: Eliminate incorrect behaviors
Granting access with expired token violates security; automatic refresh is done by Authentication Service, not Authorization; forwarding without validation breaks security.Final Answer:
Option D -> Option DQuick Check:
Expired tokens cause 401 Unauthorized rejection [check]
Solution
Step 1: Analyze latency and accuracy requirements
Near real-time updates require continuous stream processing rather than batch or polling.Step 2: Evaluate each architecture against these requirements
Batch processing (A) and hourly rollups (D) are too slow; polling (C) introduces latency and load spikes; stream processing (B) provides continuous, low-latency computation.Final Answer:
Option C -> Option CQuick Check:
Stream processing -> continuous, low-latency error budget updates [check]
Solution
Step 1: Analyze component scaling characteristics
Load Balancers typically handle stateless TCP connections and can be scaled horizontally; Reverse Proxies cache but can be scaled with eviction policies; DNS load balancing is not a runtime bottleneck.Step 2: Identify CPU-intensive bottleneck
API Gateway performs authentication, rate limiting, and transformations per request, which are CPU and memory intensive and harder to scale linearly.Final Answer:
Option A -> Option AQuick Check:
API Gateway CPU load scales with request complexity, causing bottleneck [check]
