Practice
Solution
Step 1: Identify TLS handshake role
The TLS handshake is responsible for negotiating encryption parameters and performing cryptographic operations to secure the connection.Step 2: Eliminate other options
The web application server performing manual encryption of HTTP payloads is incorrect because manual encryption by the app server is inefficient and not standard. The client browser encrypting data before sending HTTP requests is incorrect because the client does not perform the handshake encryption workload; it participates but the server's TLS library handles the cryptographic operations. The DNS server resolving domain names to IP addresses is unrelated to encryption.Final Answer:
Option A -> Option AQuick Check:
TLS handshake handles encryption setup on server side [check]
Solution
Step 1: Understand asynchronous trace context propagation
Embedding trace context in message metadata headers leverages messaging system features to propagate context without modifying payload or tight coupling.Step 2: Evaluate other options
HTTP headers don't exist in messaging protocols. Centralized DB lookup adds latency and coupling. Generating new trace IDs breaks trace continuity and requires complex offline correlation.Final Answer:
Option A -> Option AQuick Check:
Message metadata headers preserve trace context asynchronously [check]
Solution
Step 1: Understand API Gateway role
API Gateway centralizes authentication and rate limiting; without it, these controls are lost.Step 2: Trace failure consequences
Load Balancer does not perform authentication but may attempt to handle some traffic control, increasing latency; backend services may be exposed to unauthorized requests.Final Answer:
Option D -> Option DQuick Check:
Removing API Gateway removes centralized auth, Load Balancer can't fully compensate [check]
Solution
Step 1: Understand the role of metrics aggregation
Metrics aggregation collects and summarizes latency and error rates needed for alerting.Step 2: Eliminate other options
Logs and tracing are separate systems; services still emit telemetry but without aggregation alerting fails.Final Answer:
Option A -> Option AQuick Check:
Missing metrics aggregation -> alerts lack data and fail [check]
Solution
Step 1: Evaluate centralized Redis token bucket
Strong consistency causes high latency and bottlenecks under burst traffic.Step 2: Evaluate local token buckets with periodic sync
Allows burst handling locally with eventual consistency, reducing latency and bottlenecks.Step 3: Eliminate fixed window and leaky bucket options
Fixed window counters cause burst spikes; leaky bucket disallows bursts and lacks sync.Final Answer:
Option A -> Option AQuick Check:
Local token buckets + eventual sync balance burst and consistency [check]
