Practice
Solution
Step 1: Understand rollback absence impact
Without rollback, faulty Canary version cannot be reverted automatically.Step 2: Trace failure effect
Faulty version remains live, causing degraded user experience indefinitely.Final Answer:
Option A -> Option AQuick Check:
No rollback -> faulty version stays live -> degraded service persists [check]
Solution
Step 1: Identify OT engine's role in buffering and transforming operations
The OT engine buffers concurrent operations in memory to transform and order them before persistence.Step 2: Trace failure impact of OT engine crash losing in-memory buffer
Without the buffer, the engine cannot process new edits correctly, causing the system to block new edits (read-only) until recovery.Final Answer:
Option A -> Option AQuick Check:
OT engine crash causes editing to block (read-only), not silent data loss [check]
Solution
Step 1: Compare update latency and query freshness trade-offs
Batch rebuilds have high latency; synchronous writes hurt write throughput; static monthly refresh is too stale.Step 2: Identify near-real-time indexing benefits
Streaming updates asynchronously balances freshness and throughput, allowing queries to see recent changes with low delay.Final Answer:
Option A -> Option AQuick Check:
Near-real-time streaming -> balanced freshness and update latency [check]
Solution
Step 1: Evaluate mobile client support
gRPC streaming (Use gRPC streaming for persistent connections to push notifications) is efficient but poorly supported on many mobile platforms, causing compatibility issues.Step 2: WebSockets with connection broker
WebSockets (Use WebSockets with a scalable connection broker to handle mobile client limitations) are widely supported on mobile and, with a scalable broker, can handle millions of connections efficiently.Step 3: Polling drawbacks
Long polling (Use long polling HTTP requests to simulate real-time updates) and periodic polling (Use periodic polling every 5 seconds to reduce server load) increase latency and server load, unsuitable for real-time at scale.Final Answer:
Option A -> Option AQuick Check:
WebSockets + broker -> scalable, mobile-friendly real-time [check]
Solution
Step 1: Identify component workload at scale
BFF performs CPU-intensive aggregation and transformation per request, which grows linearly with client requests.Step 2: Compare other components
Microservices database, due to increased write contention is less likely first bottleneck as databases can be scaled horizontally or partitioned. API Gateway, because it must maintain stateful WebSocket connections for all clients is incorrect because API Gateway is typically stateless or uses connection offloading. Load balancer, due to limited connection handling capacity is wrong since load balancers scale well horizontally.Final Answer:
Option C -> Option CQuick Check:
BFF CPU-bound aggregation limits scale before other components [check]
