Practice
Solution
Step 1: Understand API Gateway behavior at authentication step
API Gateway enforces authentication and blocks unauthorized requests before forwarding.Step 2: Trace failure handling
On authentication failure, the API Gateway returns an error response immediately, preventing backend load.Final Answer:
Option B -> Option BQuick Check:
API Gateway blocks unauthorized requests early [check]
Solution
Step 1: Analyze CAP trade-offs
Prioritizing availability over consistency during partitions means relaxing strict consensus.Step 2: Evaluate options
Raft and Paxos enforce strong consistency, sacrificing availability; centralized locks create single points of failure; eventual consistency allows availability with conflict resolution.Final Answer:
Option C -> Option CQuick Check:
Eventual consistency favors availability during partitions [check]
Solution
Step 1: Identify constraints
Frequent deployments and multiple teams require fast, low-risk releases.Step 2: Evaluate options
Blue-Green alone is heavy for frequent deploys; Canary alone lacks feature granularity; Rolling with manual rollback is slow and risky.Step 3: Combine Feature Flags and Canary
Feature Flags enable gradual feature exposure; Canary controls version rollout risk.Final Answer:
Option C -> Option CQuick Check:
Feature Flags + Canary balance speed and risk for frequent deploys [check]
Solution
Step 1: Evaluate failover speed and client impact
Active health checks with centralized state enable immediate detection and routing updates, minimizing disruption.Step 2: Eliminate other architectures
Client-side DNS failover is slow due to DNS caching; passive detection delays failover; round-robin DNS lacks health awareness.Final Answer:
Option C -> Option CQuick Check:
Centralized active health checks enable fast, seamless failover [check]
Solution
Step 1: Analyze CDN edge server cache storage limits
At 10x scale, edge caches may evict content more frequently, increasing origin fetches.Step 2: Recognize increased origin fetches overload origin servers but edge cache misses spike first
Edge servers become bottlenecks due to cache capacity and eviction policies before origin overload.Final Answer:
Option C -> Option CQuick Check:
Edge cache storage limits cause first failure at scale, not origin or load balancers [check]
