Practice
Solution
Step 1: Understand client certificate validation
After receiving the server's certificate chain, the client validates it against its trusted root certificate authorities to ensure authenticity.Step 2: Eliminate incorrect options
The client immediately sends encrypted application data without verification is wrong because the client must verify before sending encrypted data. The client requests a new certificate from the server is incorrect; clients do not request certificates from servers. The client closes the connection if the certificate is expired without any retries is partially true but the client may attempt other steps like checking revocation before closing.Final Answer:
Option D -> Option DQuick Check:
Client verifies certificate chain before proceeding [check]
Solution
Step 1: Analyze latency and conflict requirements
Low write latency requires asynchronous replication; conflict detection needs metadata like vector clocks.Step 2: Evaluate options
Synchronous replication (A) adds latency; single primary (C) violates multi-primary requirement; last-write-wins (D) ignores conflicts.Final Answer:
Option A -> Option AQuick Check:
Async replication + vector clocks -> low latency + conflict detection [check]
Solution
Step 1: Evaluate client connectivity constraints
Mobile clients have intermittent connectivity; gRPC streaming (A) requires persistent connections, which mobile networks may not support well. HTTP long polling (D) causes overhead and latency.Step 2: Compare WebSocket with server buffering vs polling
WebSocket with server-side buffering and reconnection (C) balances low latency and fault tolerance better than client polling (B), which increases latency and load.Final Answer:
Option C -> Option CQuick Check:
WebSocket + buffering + reconnection -> best for intermittent mobile [check]
Solution
Step 1: Identify scaling challenges
Rate limiting often relies on centralized counters or stores (e.g., Redis) that become contention points under high request rates.Step 2: Eliminate other options
Backend microservices, because they cannot horizontally scale as easily as the gateway is incorrect as backend services typically scale horizontally. API Gateway routing logic, because routing tables grow exponentially with services is unlikely as routing tables are cached and optimized. Authentication service, because token validation is CPU-intensive and stateful is less likely as token validation is stateless and can be cached.Final Answer:
Option A -> Option AQuick Check:
Centralized rate limiting store bottlenecks first at scale [check]
Solution
Step 1: Analyze component scalability at 10x traffic
Databases (A) and caches (D) can be scaled horizontally or sharded; load balancers (C) can be scaled or replaced with L4/L7 solutions.Step 2: Identify API servers as bottleneck
API servers maintaining stateful connections (e.g., WebSockets) are hard to shard or move; connection limits cause saturation and failure first.Final Answer:
Option D -> Option DQuick Check:
Stateful API servers hit connection limits first at scale [check]
