Practice
Solution
Step 1: Understand BFF responsibilities at step 4
At step 4, the BFF aggregates data from multiple microservices and transforms it into a response tailored to the client's needs.Step 2: Eliminate incorrect options
BFF caches the entire response from microservices before returning to client is wrong because caching happens after response, not before calling microservices. BFF directly proxies the request without modification to microservices is incorrect as BFF modifies requests/responses rather than proxying blindly. BFF performs authentication and then sends request to a single microservice is incomplete; authentication usually happens earlier at API Gateway, and BFF calls multiple microservices, not just one.Final Answer:
Option A -> Option AQuick Check:
BFF aggregates and transforms data before responding [check]
Solution
Step 1: Identify BGP route filtering role
BGP route filters and prefix limits on edge routers prevent invalid or excessive route announcements, containing route leaks.Step 2: Eliminate other options
DNS firewalls (A) do not control BGP routing; client-side validation (C) is ineffective for routing control; distributed caches (D) do not enforce routing policies.Final Answer:
Option B -> Option BQuick Check:
BGP route filters contain route leaks at the network edge [check]
Solution
Step 1: Trace key lookup at Cache Node
If the node lacks the key, it must find the correct node responsible for that key using the consistent hash ring.Step 2: Forwarding via consistent hash ring
The node consults the hash ring to identify the node owning the key and forwards the request there; centralized metadata (The node queries a centralized metadata service for key location) adds latency and single point of failure; broadcasting (The node broadcasts the request to all other cache nodes) is inefficient.Final Answer:
Option B -> Option BQuick Check:
Consistent hash ring lookup enables correct node forwarding [check]
Solution
Step 1: Understand bucket pattern write flow
Writes append to a bucket document until size or time limits are reached.Step 2: Behavior when bucket is full
System creates a new bucket document to avoid exceeding MongoDB's 16MB document size limit.Final Answer:
Option A -> Option AQuick Check:
New bucket created to respect document size limits [check]
Solution
Step 1: Identify stateful components that limit horizontal scaling
The metrics aggregation service maintains counters and error budget state, which are hard to shard without losing accuracy.Step 2: Evaluate other components' scalability
Dashboards (A) are client-side and less critical; Kafka (C) scales well with partitions; alerting (D) can batch and scale horizontally.Final Answer:
Option A -> Option AQuick Check:
Stateful aggregation -> sharding limits -> bottleneck at scale [check]
