NEW
Font size
WorksheetsHexagonal Architecture
Total questions: 15
Worksheet time: 5mins
What is hexagonal architecture also known as?
Clean architecture
Model-View-Controller (MVC)
Layered architecture
Event-driven architecture
What is the primary focus of hexagonal architecture?
Business logic
User interface
Data storage
Networking
What is the purpose of the input boundary in hexagonal architecture?
To receive input from external systems
To store data in a database
To process business logic
To display data to the user
What is the output boundary in hexagonal architecture responsible for?
Returning data to external systems
Displaying data to the user
Storing data in a database
Processing business logic
Which of the following is an advantage of hexagonal architecture over layered architecture?
Simpler to implement
More flexible and adaptable
Higher performance
More secure
Which of the following is not a core principle of hexagonal architecture?
Separation of concerns
Dependency inversion
Test-driven development
Domain-driven design
What is the purpose of the domain layer in hexagonal architecture?
To contain the core business logic
To handle user input and output
To manage data storage and retrieval
To handle network communication
Which of the following is an example of a system that could benefit from hexagonal architecture?
A simple command-line tool
A social media platform
An online store
A calculator app
What is the purpose of the adapters in hexagonal architecture?
To connect the application to external systems
To process business logic
To handle user input and output
To store data in a database
What is the role of the application layer in hexagonal architecture?
To provide the user interface
To contain the core business logic
To handle data storage and retrieval
To manage network communication
What is the primary benefit of hexagonal architecture?
Easier testing and maintenance
Higher performance
Better user experience
Lower development cost
Which of the following is an example of a system that could benefit from layered architecture?
A web-based game
A mobile banking app
A weather app
A social media platform
Which of the following is not a characteristic of a well-designed hexagonal architecture?
Loose coupling between components
High cohesion within components
Centralized decision-making
Clear separation of concerns
What is the purpose of the infrastructure layer in hexagonal architecture?
To provide the user interface
To contain the core business logic
To handle data storage and retrieval
To manage network communication
What is the role of the service layer in layered architecture?
To provide the user interface
To contain the core business logic
To handle data storage and retrieval
To manage network communication
