Practice
Solution
Step 1: Identify failure containment mechanism
Retries alone (A) can worsen cascading failures by increasing load; load balancers (C) distribute load but don't prevent failures; message queues (D) buffer but don't stop calls to failing services.Step 2: Recognize circuit breaker role
Circuit breakers (B) detect failure thresholds and open to stop calls, preventing cascading failures and allowing recovery.Final Answer:
Option A -> Option AQuick Check:
Circuit breaker stops calls after failures to prevent cascade [check]
Solution
Step 1: Trace Request Handler token check at Step 4
If the token bucket is empty, no tokens are available to allow immediate processing.Step 2: Determine request fate
The request must be rejected or delayed until tokens refill; processing without tokens violates rate limits.Final Answer:
Option C -> Option CQuick Check:
Empty bucket -> reject or delay request [check]
Solution
Step 1: Trace ingestion failure impact
Kafka failure causes ingestion produce calls to fail or block, but ingestion service typically retries or buffers (A and B partially true but not immediate silent loss or indefinite blocking).Step 2: Trace downstream impact
Scoring service consumes from Kafka; if Kafka is down, no new transactions arrive, so scoring uses stale data, increasing false negatives.Step 3: Rule engine impact
Rule engine depends on scoring output, not directly on Kafka; it continues evaluating existing data.Final Answer:
Option A -> Option AQuick Check:
Kafka down -> no new data -> scoring uses stale data -> false negatives [check]
Solution
Step 1: Analyze write frequency and freshness needs
High-read, low-write favors lazy loading and invalidation to avoid cache update overhead.Step 2: Evaluate caching strategies
Write-through adds write latency; write-back risks stale data; cache-aside balances freshness and performance.Final Answer:
Option D -> Option DQuick Check:
Cache-aside suits high-read, low-write with freshness [check]
Solution
Step 1: Identify Layer 7 load balancer workload at scale
Layer 7 load balancers perform CPU-intensive tasks like HTTP header parsing and SSL termination, which scale poorly with traffic.Step 2: Compare with other components
Backend servers can be scaled horizontally; network switches handle packet forwarding efficiently; DNS servers are less impacted by traffic volume.Final Answer:
Option A -> Option AQuick Check:
Layer 7 LB CPU bottleneck due to HTTP parsing and SSL termination [check]
