Practice
Solution
Step 1: Identify eviction based on time expiration
TTL eviction removes cache entries strictly after a fixed time, independent of access patterns.Step 2: Eliminate other policies
LRU and LFU depend on access recency or frequency, not fixed time. ARC adapts between recency and frequency but does not enforce fixed expiration.Final Answer:
Option C -> Option CQuick Check:
TTL evicts by fixed time, ignoring usage patterns [check]
Solution
Step 1: Trace client lock acquisition at Step 4
Redlock requires majority of Redis masters to be locked within timeout to consider lock acquired.Step 2: Handle partial lock acquisition
If fewer than majority locks acquired, client must release any partial locks to avoid deadlocks and retry.Final Answer:
Option B -> Option BQuick Check:
Partial lock acquisition -> release all and retry [check]
Solution
Step 1: Understand authentication dependency
The server relies on the authentication service for validating credentials; if unavailable, requests cannot be processed.Step 2: Trace failure impact
Without authentication service, login requests hang waiting for response until timeout, then fail with no automatic retry or fallback.Final Answer:
Option C -> Option CQuick Check:
Unavailable auth service causes login hang then failure [check]
Solution
Step 1: Role of BGP monitoring
BGP monitoring detects anomalies and route changes; without it, routers may silently drop updates due to misconfigurations.Step 2: Eliminate other options
Delayed alerts (A) affect operators but don't cause silent drops; routers don't revert to static routes automatically (B); immediate client failover (D) unlikely without proper routing.Final Answer:
Option B -> Option BQuick Check:
Without monitoring, routers drop BGP updates silently causing partial visibility [check]
Solution
Step 1: Identify stateful components in REST API architecture
API Gateway maintaining in-memory sessions is stateful and tied to client connections.Step 2: Understand scaling impact of statefulness
Stateful session storage prevents easy horizontal scaling; new servers can't share session state, causing bottlenecks.Step 3: Compare with other components
Load balancers handle stateless TCP connections; databases and caches can be sharded or scaled differently.Final Answer:
Option C -> Option CQuick Check:
Stateful API Gateway sessions block horizontal scaling first [check]
