Bird
Raised Fist0

Which of the following is a common trade-off when using a Facade pattern in a large system?

medium🪤 Complexity Trap Q13 of Q15
OOP & Design Patterns - Adapter vs Facade vs Proxy - Structural Pattern Comparison
Which of the following is a common trade-off when using a Facade pattern in a large system?
AFacade can hide too much complexity, making it hard to access advanced features of subsystems
BFacade increases coupling between client and subsystems by exposing detailed interfaces
CFacade always adds significant runtime overhead due to extra method calls
DFacade requires changing the underlying subsystem interfaces to work properly
Step-by-Step Solution
  1. Step 1: Recall Facade's purpose

    Facade simplifies complex subsystems by providing a unified interface.
  2. Step 2: Analyze trade-offs

    While Facade simplifies usage, it can hide advanced features, limiting flexibility.
  3. Step 3: Evaluate other options

    A is incorrect because Facade reduces coupling by hiding subsystem details. C is incorrect; Facade's overhead is minimal. D is wrong; Facade does not require changing subsystems.
  4. Final Answer:

    Option A -> Option A
Quick Trick: Facade hides complexity but may hide power
Common Mistakes:
MISTAKES
  • Believing Facade increases coupling instead of reducing it
  • Assuming Facade adds heavy runtime overhead
  • Thinking Facade requires modifying subsystems
Trap Explanation:
PITFALL
  • Candidates often confuse Facade's simplification with increased coupling or performance cost.
Interviewer Note:
CONTEXT
  • Tests understanding of Facade's trade-offs and when it might limit subsystem access.
Master "Adapter vs Facade vs Proxy - Structural Pattern Comparison" in OOP & Design Patterns

2 interactive learning modes - each teaches the same concept differently

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More OOP & Design Patterns Quizzes