Bird
0
0

Given a BFF that calls User Service and Product Service, what is the expected output if User Service returns user data and Product Service returns an error?

medium📝 Analysis Q4 of 15
Microservices - Advanced Patterns
Given a BFF that calls User Service and Product Service, what is the expected output if User Service returns user data and Product Service returns an error?
ABFF returns only product data ignoring user data.
BBFF crashes and returns no data.
CBFF returns combined user data and product error to the frontend.
DBFF returns empty response.
Step-by-Step Solution
Solution:
  1. Step 1: Understand BFF error handling

    BFF typically aggregates data and handles partial failures gracefully, returning available data with error info.
  2. Step 2: Analyze given scenario

    User Service returns data, Product Service returns error. BFF should return user data plus product error to frontend.
  3. Final Answer:

    BFF returns combined user data and product error to the frontend. -> Option C
  4. Quick Check:

    BFF handles partial errors = combined response [OK]
Quick Trick: BFF aggregates data, handles partial errors [OK]
Common Mistakes:
  • Assuming BFF crashes on any microservice error
  • Ignoring partial data and returning empty
  • Returning only error without available data

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes