Practice
Solution
Step 1: Understand reverse proxy SSL termination failure
If the reverse proxy crashes, SSL termination stops, so backend servers receive unencrypted traffic if clients connect directly or fallback occurs.Step 2: Eliminate other options
Clients cannot connect directly if proxy is mandatory; SSL handshake fails only if proxy blocks connection; proxy can't forward encrypted requests without decrypting if crashed.Final Answer:
Option C -> Option CQuick Check:
Reverse proxy crash exposes backend to unencrypted traffic [check]
Solution
Step 1: Evaluate synchronous monolithic index (A)
Updating a single large index synchronously causes high write latency and blocks queries.Step 2: Consider multi-level index (B)
Multi-level indexing with a small in-memory index for recent changes enables low-latency queries and fast incremental updates, while the large on-disk index handles bulk data efficiently.Step 3: Analyze distributed sharding (C) and batch rebuild (D)
Sharding by document ID with eventual consistency can cause stale query results; batch rebuilds cause high query latency during rebuild.Final Answer:
Option D -> Option DQuick Check:
Multi-level index balances update speed and query latency [check]
Solution
Step 1: Evaluate TLS versions and key exchange
TLS 1.3 supports ephemeral key exchange (ECDHE) which provides forward secrecy and reduces handshake round trips, lowering latency.Step 2: Eliminate other options
Use TLS 1.0 with RSA key exchange for compatibility uses outdated TLS 1.0 and RSA key exchange lacking forward secrecy and higher latency. Disable certificate validation to speed up connections compromises security by disabling validation. Use self-signed certificates to avoid certificate chain overhead risks trust issues and is unsuitable for public APIs.Final Answer:
Option A -> Option AQuick Check:
TLS 1.3 ephemeral keys -> forward secrecy + lower latency [check]
Solution
Step 1: Identify stateful bottleneck in synchronous chat
Chat servers maintain WebSocket connections statefully, binding clients to specific servers.Step 2: Analyze scaling challenges
At 10x scale, resharding or migrating these stateful connections is complex, causing chat servers to fail first.Final Answer:
Option D -> Option DQuick Check:
Stateful WebSocket servers limit horizontal scaling, causing early failure [check]
Solution
Step 1: Identify centralized token refill scheduler role
It coordinates token replenishment globally, requiring strong consistency and frequent updates.Step 2: Analyze scaling impact
At 10x scale, centralized scheduler becomes a contention bottleneck and latency hotspot, limiting throughput.Step 3: Compare other components
Distributed cache scales better with sharding; client-side buckets are local and scale naturally; network issues are secondary to scheduler bottleneck.Final Answer:
Option B -> Option BQuick Check:
Centralized scheduler bottlenecks first at scale [check]
