Recall & Review
beginner
What is the main purpose of the Entities layer in Clean Architecture?
The Entities layer contains the core business rules and data. It represents the most general and high-level business objects that are independent of any external systems or frameworks.
Click to reveal answer
beginner
Which layer in Clean Architecture acts as a bridge between the Entities and external systems?
The Use Cases (or Interactors) layer acts as a bridge. It contains application-specific business rules and orchestrates the flow of data to and from the Entities layer and external layers.
Click to reveal answer
intermediate
What role does the Interface Adapters layer play in Clean Architecture?
The Interface Adapters layer converts data from the format most convenient for the Use Cases and Entities layers to the format used by external agencies like databases, web, or UI frameworks.
Click to reveal answer
intermediate
Why should dependencies in Clean Architecture always point inward?
Dependencies point inward to ensure that inner layers (Entities, Use Cases) do not depend on outer layers (UI, databases). This keeps business rules independent and reusable.
Click to reveal answer
beginner
Name the four main layers of Clean Architecture from innermost to outermost.
From innermost to outermost: Entities, Use Cases (Interactors), Interface Adapters, Frameworks & Drivers (e.g., UI, Database).
Click to reveal answer
Which layer contains the core business logic in Clean Architecture?
✗ Incorrect
Entities hold the core business rules and data, independent of external systems.
In Clean Architecture, which layer is responsible for converting data formats between layers?
✗ Incorrect
Interface Adapters convert data formats to communicate between inner layers and external systems.
Why do dependencies point inward in Clean Architecture?
✗ Incorrect
Inward dependencies keep business rules independent and reusable by preventing outer layers from affecting inner layers.
Which layer typically contains controllers, gateways, and presenters?
✗ Incorrect
Interface Adapters layer contains controllers, gateways, and presenters to adapt data and requests.
What is the outermost layer in Clean Architecture?
✗ Incorrect
Frameworks & Drivers is the outermost layer, including UI, database, and external tools.
Explain the role and responsibilities of each Clean Architecture layer.
Think of layers as rings around the core business logic, each with a specific job.
You got /4 concepts.
Describe why the dependency rule (dependencies point inward) is important in Clean Architecture.
Imagine the core business logic as a safe that should not be affected by outside changes.
You got /4 concepts.