Proxy
View Helper
Front Controller
Session Facade
Business Delegate
Model-View-Controller
第1题:
Which the three are true about servlet filters?()
第2题:
You are designing a Windows Azure application. The application includes two web roles and three instances of a worker role. The web roles will send requests to the worker role through one or more Windows Azure Queues. You have the following requirements: - Ensure that each request is processed exactly one time. - Minimize the idle time of each worker role instance. - Maximize the reliability of request processing. You need to recommend a queue design for sending requests to the worker role. What should you recommend?()
第3题:
A developer has created a special servlet that is responsible for generating XML content that is sent to adata warehousing subsystem. This subsystem uses HTTP to request these large data files, which are compressed by the servlet to save internal network bandwidth. The developer has received a request frommanagement to create several more of these data warehousing servlets. The developer is about to copyand paste the compression code into each new servlet. Which design pattern can consolidate thiscompression code to be used by all of the data warehousing servlets?()
第4题:
You are building a Front Controller using a JSP page and you need to determine if the user’s session hasNOT been created yet and perform some special processing for this case. Which scriptlet code snippet willperform this test?()
第5题:
A developer is designing the presentation tier for a web application which requires a centralized requesthandling to complete common processing required by each request. Which design pattern provides asolution to this problem?()
第6题:
Which is true about the web container request processing model?()
第7题:
You are designing a Windows Azure application that will allow for the processing of image files. Images will be processed in batches by remote applications running on multiple servers. The application must meet the following requirements: - Remain operational during batch-processing operations. - Allow users to roll back each image to previous versions. Each remote application must have exclusive access to an image while processing it. You need to recommend an approach for storing the images. What should you recommend?()
第8题:
The init method on a filter is called the first time a servlet mapped to that filter is invoked.
A filter defined for a servlet must always forward control to the next resource in the filter chain.
Filters associated with a named servlet are applied in the order they appear in the web application deployment descriptor file.
If the init method on a filter throws an UnavailableException, then the container will make no further attempt to execute it.
第9题:
Boost the priority of batch jobs.
Schedule batch runs to reduce contention with OLTP.
Schedule OS maintenance such that it includes frequent application of PTFs.
Perform incremental backups of transaction processing and full backups of batch processing.
第10题:
A filter must implement the destroy method
A filter must implement the doFilter method
A servlet may have multiple filters associated with it
A servlet that is to have a filter applied to it must implement the javax.servlet.FilterChain interface
A filter that is part of a filter chain passes control to the next filter in the chain by invoking the filterChain forward method
For each
第11题:
Remote Proxy
Front Controller
Service Activator
Intercepting Filter
Business Delegate
第12题:
HttpSession
ServletConfig
ServletContext
HttpServletRequest
HttpServletResponse
第13题:
Which is the true choice about the web container request processing model()?
第14题:
When a system has both online transaction processing as well as large batch processing, which of the following common procedures will best help to improve system performance?()
第15题:
Your web application uses a simple architecture in which servlets handle requests and then forward to aJSP using a request dispatcher. You need to pass information calculated in the servlet to the JSP for view generation.This information must NOT be accessible to any other servlet,JSP or session in the webapp. Which two techniques can you use to accomplish this goal?()
第16题:
Squeaky Beans Inc. hired an outside consultant to develop their web application. To finish the job quickly,the consultant created several dozen JSP pages that directly communicate with the database. The Squeakybusiness team has since purchased a set of business objects to model their system, and the Squeaky developer charged with maintaining the web application must now refactor all the JSPs to work with the newsystem. Which pattern can the developer use to solve this problem?()
第17题:
Servlet A receives a request that it forwards to servlet B within another web application in the same web container. Servlet A needs to share data with servlet B and that data must not be visible to other servlets in A’s web application. In which object can the data that A shares with B be stored?()
第18题:
A Company.com developer has created a web application that includes a servlet for each use case in the application. These servlets have become rather difficult to maintain because the request processing methods have become very large. There is also common processing code in many servlets because these use cases are very similar. Which two design patterns can be used together to refactor and simplify this web application? ()
第19题:
A
B
C
D
第20题:
Facade
View Helper
Transfer Object
Intercepting Filter
Composite Facade
第21题:
Proxy
View Helper
Front Controller
Session Façade
Business Delegate
Model-View-Controller
第22题:
Add attributes to the session object.
Add attributes on the request object.
Add parameters to the request object.
Use the pageContext object to add request attributes.
Add parameters to the JSP’s URL when generating the request dispatcher.
第23题:
Transfer Object
Session Facade
Intercepting Filter
Template Method
Model-View-Controller