Bird
Raised Fist0

Which building block in Domain-Driven Design is responsible for enforcing business rules and consistency?

easy๐Ÿง  Conceptual Q2 of Q15
LLD - Advanced LLD Concepts
Which building block in Domain-Driven Design is responsible for enforcing business rules and consistency?
ARepository
BAggregate
CService
DFactory
Step-by-Step Solution
Solution:
  1. Step 1: Identify Aggregate role

    An Aggregate is a cluster of domain objects treated as a single unit for data changes and consistency.
  2. Step 2: Understand business rule enforcement

    Aggregates enforce business rules and maintain consistency boundaries.
  3. Final Answer:

    Aggregate -> Option B
  4. Quick Check:

    Aggregate = Enforces business rules [OK]
Quick Trick: Aggregates keep business rules consistent [OK]
Common Mistakes:
MISTAKES
  • Confusing Repository with business logic
  • Thinking Services enforce consistency
  • Assuming Factories enforce rules

Want More Practice?

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

Free Signup - Practice All Questions
More LLD Quizzes