Practice
Solution
Step 1: Understand Authorization Service behavior at token validation
The service validates token expiry and rejects expired tokens.Step 2: Eliminate incorrect behaviors
Granting access with expired token violates security; automatic refresh is done by Authentication Service, not Authorization; forwarding without validation breaks security.Final Answer:
Option D -> Option DQuick Check:
Expired tokens cause 401 Unauthorized rejection [check]
Solution
Step 1: Understand the role of the Error Budget Calculator at step 4
It updates the remaining error budget by subtracting the recent error rate from the total allowed errors, reflecting current SLO compliance.Step 2: Exclude other states that contradict error budget tracking logic
Resetting the budget ignores recent errors; queuing is done later by alerting; discarding counts would lose accuracy.Final Answer:
Option D -> Option DQuick Check:
Error Budget Calculator updates remaining budget after aggregation [check]
Solution
Step 1: Identify rate limiting with burst support
The token bucket algorithm allows tokens to accumulate up to a max bucket size, enabling bursts beyond the steady refill rate.Step 2: Eliminate other options
Fixed window counters cause spikes at window boundaries and don't handle bursts well. Leaky bucket smooths traffic but disallows bursts. Simple queues drop excess requests without rate control.Final Answer:
Option D -> Option DQuick Check:
Token bucket allows bursts by token accumulation [check]
Solution
Step 1: Evaluate encryption approaches for read latency and security
TDE with HSMs provides strong security with minimal impact on read latency as encryption/decryption is transparent and hardware-accelerated.Step 2: Eliminate less suitable options
Client-side encryption increases latency and complicates querying; app-layer encryption with env vars risks key exposure and adds latency; file system encryption protects at disk level but not granular data access.Final Answer:
Option B -> Option BQuick Check:
TDE + HSM balances security and low-latency reads [check]
Solution
Step 1: Identify stateful components at risk
Stateful microservices holding WebSocket connections cannot easily shard or move connections, limiting horizontal scaling.Step 2: Compare other components' scaling characteristics
Shared DB and service discovery can be sharded or cached; API Gateway can be scaled horizontally with load balancers.Final Answer:
Option B -> Option BQuick Check:
Stateful WebSocket connections limit microservices horizontal scaling [check]
