Bird
0
0

In an API Gateway implementing the Facade pattern, what is the expected client experience when multiple backend services are involved?

medium📝 Predict Output Q5 of 15
Rest API - Advanced Patterns
In an API Gateway implementing the Facade pattern, what is the expected client experience when multiple backend services are involved?
AClient must call each backend service separately.
BClient sees a simplified, unified API hiding backend complexity.
CClient receives raw responses from all backend services.
DClient handles authentication for each backend service.
Step-by-Step Solution
Solution:
  1. Step 1: Define Facade pattern purpose

    Facade pattern provides a simple interface that hides the complexity of multiple backend services.
  2. Step 2: Match client experience

    Client interacts with one unified API, not multiple separate calls or raw data.
  3. Final Answer:

    Client sees a simplified, unified API hiding backend complexity. -> Option B
  4. Quick Check:

    Facade pattern = simplified unified API [OK]
Quick Trick: Facade hides backend complexity behind one API [OK]
Common Mistakes:
MISTAKES
  • Thinking client calls each service directly
  • Assuming client handles backend auth
  • Confusing Facade with Proxy

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes