Practice
Solution
Step 1: Identify the role of BFF
The BFF layer acts as a tailored API gateway that adapts responses specifically for each client type, reducing payload and improving UX.Step 2: Eliminate other options
Use a shared database view that filters data per device type is incorrect because database views are not designed for client-specific adaptation and increase coupling. Let each microservice handle device-specific logic internally is wrong as microservices should remain generic and not handle client-specific logic. Use a CDN to cache different payloads per device type is incorrect because CDNs cache static content and cannot dynamically tailor API responses per device.Final Answer:
Option D -> Option DQuick Check:
BFF adapts APIs per client type for optimized payloads [check]
Solution
Step 1: Trace Delivery Worker decision at Step 4 -- Bob's presence TTL
If TTL expired, recipient is offline; message can't be delivered immediately.Step 2: Understand offline delivery handling
Delivery Worker queues message for later delivery and marks status as 'sent but not delivered' to reflect state.Final Answer:
Option A -> Option AQuick Check:
Expired TTL -> queue message, status 'sent but not delivered' [check]
Solution
Step 1: Trace synchronous call behavior at step 3
Order Service calls Inventory Service synchronously, so it waits for response before replying to client.Step 2: Analyze impact of slow Inventory Service
Because of synchronous call, client request blocks until Inventory Service responds or times out; no immediate return or retries happen automatically.Final Answer:
Option D -> Option DQuick Check:
Synchronous calls block caller until response or timeout [check]
Solution
Step 1: Understand impact of partition key on data distribution
Improper partition keys cause very large partitions, leading to coordinator overload during queries.Step 2: Trace failure mode
Large partitions cause coordinator to timeout or fail when scanning data; stale data and silent write failures are unrelated; data duplication is controlled by replication, not partition key choice.Final Answer:
Option D -> Option DQuick Check:
Large partitions -> coordinator overload -> query timeouts [check]
Solution
Step 1: Identify component roles at scale
Archive storage uses tape drives with limited concurrent access bandwidth and high latency.Step 2: Analyze scaling challenges
At 10x scale, tape drives become bottleneck due to limited parallelism and slow seek times, unlike metadata which can be sharded.Final Answer:
Option A -> Option AQuick Check:
Archive tape bandwidth limits -> first bottleneck [check]
