Bird
0
0

In a Clean Architecture project, the UI team complains that changes in the Frameworks layer break their code frequently. What is a likely architectural mistake?

medium📝 Conceptual Q7 of 15
LLD - Advanced LLD Concepts
In a Clean Architecture project, the UI team complains that changes in the Frameworks layer break their code frequently. What is a likely architectural mistake?
AUI depends directly on Entities layer
BUI depends on Frameworks and Drivers layer
CUI depends on Use Cases layer
DUI depends on Interface Adapters layer
Step-by-Step Solution
Solution:
  1. Step 1: Understand UI dependencies

    UI should depend on Interface Adapters, not directly on Frameworks and Drivers.
  2. Step 2: Identify cause of frequent breakage

    Direct dependency on Frameworks layer causes UI to break when external tools change.
  3. Final Answer:

    UI depends on Frameworks and Drivers layer -> Option B
  4. Quick Check:

    UI should avoid Frameworks dependency = A [OK]
Quick Trick: UI depends on Adapters, not Frameworks [OK]
Common Mistakes:
  • Assuming UI depends on Entities
  • Thinking UI should depend on Use Cases directly
  • Ignoring Adapter layer role

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes