Bird
Raised Fist0

You need to add a new feature that requires changing business rules without affecting UI or database code. Which Clean Architecture layer should you modify?

hard๐Ÿ“ Trade-off Q8 of Q15
LLD - Advanced LLD Concepts
You need to add a new feature that requires changing business rules without affecting UI or database code. Which Clean Architecture layer should you modify?
AUI layer
BInterface Adapters layer
CFrameworks and Drivers layer
DEntities layer
Step-by-Step Solution
Solution:
  1. Step 1: Identify where business rules reside

    Business rules are encapsulated in the Entities layer.
  2. Step 2: Understand impact isolation

    Modifying Entities changes business logic without affecting UI or database layers.
  3. Final Answer:

    Entities layer -> Option D
  4. Quick Check:

    Business rule changes = Entities layer [OK]
Quick Trick: Change business rules inside Entities layer only [OK]
Common Mistakes:
MISTAKES
  • Changing UI or Frameworks for business rules
  • Modifying Interface Adapters for logic
  • Confusing Entities with Adapters

Want More Practice?

15+ quiz questions ยท All difficulty levels ยท Free

Free Signup - Practice All Questions
More LLD Quizzes