29.7k views
5 votes
Which of the following is/are examples of the Separation of Domain principle

O Bean validation
O Embedded SQL
O Context dependent output encoding
O Angular JS
O Web framework filters

User MartinP
by
7.8k points

1 Answer

3 votes

Final answer:

Web framework filters are an example of the Separation of Domain principle, segregating specific functionalities like authentication from the core application logic for better security and maintainability.

Step-by-step explanation:

The principle of Separation of Domain refers to segregating system functionality into distinct areas that do not overlap, enhancing security and maintainability. This principle is part of the broader concept of separation of concerns in software engineering, where different concerns are managed separately to reduce complexity and prevent unwanted interactions.

Out of the options provided, the one that represents an example of the Separation of Domain principle would be Web framework filters. These filters are mechanisms in web development frameworks that allow developers to apply certain pre-processing and post-processing tasks, such as authentication or logging, across multiple requests and responses, separating these concerns from the core application logic.

Bean validation and context-dependent output encoding are concepts related to data validation and security but are not examples of separation of domains per se. AngularJS is a web application framework, while embedded SQL concerns integrating SQL queries within a host programming language. Neither are specific examples of the Separation of Domain principle.

User Jon Preece
by
6.9k points