Bird
0
0

In Clean Architecture, which layer is responsible for adapting data from the database to the business logic?

easy📝 Conceptual Q12 of 15
LLD - Advanced LLD Concepts
In Clean Architecture, which layer is responsible for adapting data from the database to the business logic?
AEntities layer
BUse Cases (Interactor) layer
CUI layer
DInterface Adapters layer
Step-by-Step Solution
Solution:
  1. Step 1: Identify the role of Interface Adapters

    Interface Adapters convert data from external sources like databases into a form usable by inner layers.
  2. Step 2: Confirm other layers' roles

    Entities hold business rules, Use Cases orchestrate logic, UI handles presentation, so adapting data fits Interface Adapters.
  3. Final Answer:

    Interface Adapters layer -> Option D
  4. Quick Check:

    Data adaptation = Interface Adapters [OK]
Quick Trick: Data conversion happens in Interface Adapters [OK]
Common Mistakes:
  • Choosing Entities layer for data adaptation
  • Confusing Use Cases with data conversion
  • Selecting UI layer for database data handling

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes