You have been recruited by an online retailer of footwear to conduct a review of their online systems. Your primary Finding is that the development team has
implemented duplicated complex business logic as Java scripts directly into the JSPs, causing performance, scalability, and maintainability issues.
Which two design patterns would you select to improve the current code base?
View Helper
From Controller
Composite View
Service-to-Worker
Business Delegate
Correct answer: BD
Question 2
A successful web application is used by over two hundred thousand users. Due to this substantial load, the database is over bridged and fails frequently. All data, included critical user records and temporary session data, is stored in the database. Because of resource constraints, a new database system cannot be installed.
Which change will reduce the load on the database?
Creating more entity beans to optimize interaction wild the database
Refactoring the web application to use DAOs to communicate with the database
Refactoring the web application to store temporary session data on the web servers
Adding more web servers to the web tier to distribute the load and reduce the number of transactions on the database.
Correct answer: C
Question 3
You are using an open source integration framework in your project. However, key interfaces do not explicitly define several strange conditions you have repeatedly seen while testing.
Which option is the name given to the anti pattern described above?
Composite View
Leaky Abstraction
Asynchronous Interaction
Golden Hammer
Correct answer: B
Explanation:
All non-trivial abstractions, to some degree, are leaky. An abstraction that works most of the time, but where a detail of the underlying complexity cannot be ignored, thus leaking complexity out of the abstraction back into the software that uses the abstraction.
All non-trivial abstractions, to some degree, are leaky.
An abstraction that works most of the time, but where a detail of the underlying complexity cannot be ignored, thus leaking complexity out of the abstraction back into the software that uses the abstraction.