• Post Reply Bookmark Topic Watch Topic
  • New Topic

EPractice Lab quiz 1 front controller and improve security management  RSS feed

Himai Minh
Ranch Hand
Posts: 1572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think
- intercepting filter is used for security management, not the front controller.
- option C is also a correct choice for front controller.

Identify the advantages of applying the Front controller design pattern.

a. Improves manageability of Security
b. Centralizes control
c. Enables a clean separation between the presentation and business tier services
d. Reduces the networking calls involved and hence increases the performance
e. Improves reusability

Choice A, Choice B and Choice E are correct

Front Controller acts as the initial point of contact for handling a request. The controller manages the handling of the request, including invoking security services such as authentication and authorization, delegating business processing, managing the choice of an appropriate view, handling errors, and managing the selection of content creation strategies.

The advantages of using this pattern are:
Centralizes Control A controller provides a central place to handle system services and business logic across multiple requests. A controller manages business logic processing and request handling.

Centralized access to an application means that requests are easily tracked and logged. As control centralizes, it is possible to introduce a single point of failure. However, in practice, this rarely is a problem, since multiple controllers typically exist, either within a single server or in a cluster.
Improves Manageability of Security A controller centralizes control, providing a choke point for illicit access attempts into the Web application. In addition, auditing a single entrance into the application requires fewer resources than distributing security checks across all pages.

Improves Reusability A controller promotes cleaner application partitioning and encourages reuse, as code that is common among components moves into a controller or is managed by a controller.

Hence choices A, B, and E are correct.
Choices C and D are incorrect as this pattern neither reduces the coupling between presentation and business tier services nor reduces the network calls involved.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!