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: Understand Layer 7 load balancer behavior at step 4
At step 4, the Layer 7 load balancer inspects HTTP headers (like URL path) to decide routing.Step 2: Eliminate options inconsistent with Layer 7 behavior
Forwarding raw TCP packets (A) is Layer 4 behavior; DNS resolution (C) is client-side; encryption (D) is unrelated here.Final Answer:
Option A -> Option AQuick Check:
Layer 7 LB inspects HTTP headers and routes accordingly [check]
Solution
Step 1: Role of shard key index
Shard key index is critical for routing queries to correct shards and maintaining data partitioning.Step 2: Impact of losing shard key index
Without the index, shards cannot serve queries properly and reject operations until index rebuild, causing downtime.Final Answer:
Option C -> Option CQuick Check:
Shard key index loss causes shard query rejection and downtime [check]
Solution
Step 1: Identify DAU Estimator role
DAU Estimator provides daily active user count critical for bandwidth calculations as bandwidth depends on total active users.Step 2: Eliminate other options
The system cannot estimate peak QPS, causing under-provisioning of servers is incorrect because peak QPS depends on instantaneous requests, not just DAU; Storage estimation becomes inaccurate because DAU is a key multiplier for daily data volume is partially true but storage depends more on total objects, not DAU alone; User authentication fails because DAU tracks active sessions is unrelated to authentication.Final Answer:
Option A -> Option AQuick Check:
Bandwidth depends directly on DAU for total data transfer [check]
Solution
Step 1: Analyze API Gateway resource usage
API Gateway maintains in-memory counters per user/request, which grow linearly with traffic, exhausting memory and CPU first.Step 2: Compare other components
Databases can be sharded and scaled; service caches sync asynchronously; load balancers handle connection churn better than API Gateway resource limits.Final Answer:
Option A -> Option AQuick Check:
API Gateway memory/CPU bottleneck at 10x scale [check]
