多选题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 com

题目
多选题
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? ()
A

Proxy

B

View Helper

C

Front Controller

D

Session Façade

E

Business Delegate

F

Model-View-Controller


相似考题
更多“多选题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 com”相关问题
  • 第1题:

    Which the three are true about servlet filters?()

    • A、 A filter must implement the destroy method
    • B、 A filter must implement the doFilter method
    • C、 A servlet may have multiple filters associated with it
    • D、 A servlet that is to have a filter applied to it must implement the javax.servlet.FilterChain  interface
    • E、 A filter that is part of a filter chain passes control to the next filter in the chain by invoking the filterChain forward method
    • F、 For each  element in the web application deployment descriptor, multiple instances of a filter may be created by the web container

    正确答案:A,B,C

  • 第2题:

    Company.com has an application that has a hard-coded hostname in the startup routines. The application is being made highly available using HACMP. During testing, the application does not start on the standby node because the hostname was not what the application expected.  What can be done to fix this problem?()

    • A、 Manage the hostname in the application server start ands top scripts
    • B、 Nothing, because this application cannot be controlled by HACMP and should be started  with   /etc/inittab
    • C、 Change the hard-coded hostname in the application startup routines to use the uname rather than the hostname
    • D、 Override the default ha_hostname in the cluster configuration to reflect the shared hostname rather than the default ha_hostname

    正确答案:A

  • 第3题:

    Company.com has decided to use the FUBAR Application Server to host their web application. Unfortunately, the FUBAR Application Server uses the server machine’s file system for its JNDI namespace. Every JNDI lookup performed in the web application is translated into a file 1/0 operation, which results in very poor performance.  Which J2EE pattern can help with this performance issue?()

    • A、 Transfer Object
    • B、 Service Locator
    • C、 Intercepting Filter
    • D、 Model-View-Controller

    正确答案:B

  • 第4题:

    A developer is designing a web application that makes many fine-grained remote data requests for each client request. During testing, the developer discovers that the volume of remote requests significantly degrades performance of the application. Which design pattern provides a solution for this problem?()

    • A、 Flyweight
    • B、 Transfer Object
    • C、 Service Locator
    • D、 Dispatcher View
    • E、 Business Delegate
    • F、 Model-View-Controller

    正确答案:B

  • 第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?()

    • A、Remote Proxy
    • B、Front Controller
    • C、Service Activator
    • D、Intercepting Filter
    • E、Business Delegate

    正确答案:B

  • 第6题:

    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? ()

    • A、 Proxy
    • B、 View Helper
    • C、 Front Controller
    • D、 Session Façade
    • E、 Business Delegate
    • F、 Model-View-Controller

    正确答案:C,F

  • 第7题:

    You work as an application developer at Certkiller .com. You have recently created an application domain for Certkiller .com. A few weeks later you are asked to retrieve information from this application domain, which is the current application domain. What can you do to achieve this objective?()

    • A、 Use the following code: AppDomain appInfo = ApplicationDomain.Current;
    • B、 Use the following code: AppDomain appInfo = AppDomain.CurrentDomain ();
    • C、 Use the following code: AppDomain appInfo = Thread.GetDomain ();
    • D、 Use the following code: AppDomain appInfo = MainThread.GetDomain ();

    正确答案:B,C

  • 第8题:

    You work as an application developer at Certkiller .com. You have recently created an application domain for Certkiller .com. A few weeks later, you are required to determine if assembly references in this application domain, which is the current application domain, are being cached. What property should you use to achieve this objective?()

    • A、 AppDomain.CurrentDomain.ShadowCopyFiles
    • B、 AppDomain.CurrentDomain.CachePath
    • C、 AppDomain.CurrentDomain.ConfigurationFile
    • D、 AppDomain.CurrentDomain.Evidence

    正确答案:A

  • 第9题:

    单选题
    You work as an application developer at Certkiller .com. You have recently created an application that includes the code shown below. public delegate stringGetFileContentsDel (); public string GetFileContents () {  //Process file and return results }  You now need to invoke the GetFileContents method asynchronously.  You have to ensure that the code you use to invoke the GetFileContents method will continue to process other user instructions, and displays the results as soon as the GetFileContents method finishes processing.What should you do?()
    A

    A

    B

    B

    C

    C

    D

    D


    正确答案: D
    解析: 暂无解析

  • 第10题:

    多选题
    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? ()
    A

    Proxy

    B

    View Helper

    C

    Front Controller

    D

    Session Façade

    E

    Business Delegate

    F

    Model-View-Controller


    正确答案: F,E
    解析: 暂无解析

  • 第11题:

    多选题
    A 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 havebecome very large. There is also common processing code in many servlets because these use cases arevery similar. Which two design patterns can be used together to refactor and simplify this web application?()
    A

    Proxy

    B

    View Helper

    C

    Front Controller

    D

    Session Facade

    E

    Business Delegate

    F

    Model-View-Controller


    正确答案: A,B
    解析: 暂无解析

  • 第12题:

    单选题
    You work as an application developer at Certkiller .com. You have recently created a multithreaded application to manage Certkiller .com’s inventory system.  The fulfillment task has to be executed on a regular basis, while other tasks are performed in the application. The task does not need any input to start.  You are required to create and start the fulfillment thread using the appropriate code.What code should you use?()
    A

    A

    B

    B

    C

    C

    D

    D


    正确答案: C
    解析: 暂无解析

  • 第13题:

    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 Squeaky business 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 new system.  Which pattern can the developer use to solve this problem?()

    • A、 Transfer Object
    • B、 Service Locator
    • C、 Intercepting Filter
    • D、 Business Delegate

    正确答案:D

  • 第14题:

    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?()

    • A、 Create a single queue.  Send requests on the single queue.
    • B、 Create a queue for each web role.  Send requests on all queues at the same time.
    • C、 Create a queue for each workerrole instance.  Send requests on each worker queue in a round robin.
    • D、 Create a queue for each combination of web roles and worker role instances.  Send requests to all worker role instances based on the sending web role.

    正确答案:A

  • 第15题:

    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?()

    • A、Facade
    • B、View Helper
    • C、Transfer Object
    • D、Intercepting Filter
    • E、Composite Facade

    正确答案:D

  • 第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?()

    • A、Transfer Object
    • B、Service Locator
    • C、Intercepting Filter
    • D、Business Delegate

    正确答案:D

  • 第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?()

    • A、 HttpSession
    • B、 ServletConfig
    • C、 ServletContext
    • D、 HttpServletRequest
    • E、 HttpServletResponse

    正确答案:D

  • 第18题:

    You copy a Web site from a development site to a staging site. You do not have the Web site in a source control application. Another developer begins to fix bugs on the staging site while the development team adds features on the development site. You need to synchronize the development site and the staging site and copy the latest version of each file to both locations. What should you do? ()

    • A、Use the Copy Web tool.
    • B、Create a Web Setup project.
    • C、Use the Publish Web tool.
    • D、Use the command line to XCOPY the files.

    正确答案:A

  • 第19题:

    You work as the enterprise exchange administrator at Company.com.The Company.com network consists of a single Active Directory domain named Company.com.Company.com has an Exchange  Server 2010 organization.Company.com contains an exchange server 2010 server named -sr15 that has the following roles installed: client access, hub transport, and mailbox server.the Company.com also has a windows server 2008 r2 certification authority (ca).Company.com has merged with another company named Courseware Publishers that contains an internal root C A.You have received instructions from the CIO to install a certificate to create the federated trust as well as to reduce the cost. What should you do?()

    • A、You need to set up a computer certificate request on -sr15; thereafter you should submit the request to a third-party trusted ca
    • B、You need to use -sr15 and generate a self-signed certificate
    • C、You need to use request a computer certificate from the Company.com.com ca from -sr15
    • D、You need to set up a computer certificate request on -sr15; thereafter you should submit the request to courseware publishers ca

    正确答案:A

  • 第20题:

    You work as a network Exchange administrator at Company.com.The Company.com network  currently consists of a single Active Directory forest containing a single domain named Company.com.The Company.com organization makes use of Microsoft Exchange Server 2010 as their messaging solution.The Company.com network users have been configured by Company.com to have the @Company.com email address suffix.During the course of the business week you receive instruction from Company.com to configure a public folder named KingPublic for the Internet users to post content by sending e-mail to KingPublic@Company.com.  What should you do?()

    • A、You should consider having a new mail contact created which has the e-mail address KingPublic@Company.com.You should then have a transport rule created.
    • B、You should consider having a new mailbox created which has the e-mail address KingPublic@Company.com.You should then have a transport rule created.
    • C、You should consider having mail enabled for KingPublic.
    • D、You should consider having the author role assigned to Anonymous.

    正确答案:C

  • 第21题:

    单选题
    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?()
    A

    Facade

    B

    View Helper

    C

    Transfer Object

    D

    Intercepting Filter

    E

    Composite Facade


    正确答案: C
    解析: 暂无解析

  • 第22题:

    多选题
    Which the three are true about servlet filters?()
    A

    A filter must implement the destroy method

    B

    A filter must implement the doFilter method

    C

    A servlet may have multiple filters associated with it

    D

    A servlet that is to have a filter applied to it must implement the javax.servlet.FilterChain  interface

    E

    A filter that is part of a filter chain passes control to the next filter in the chain by invoking the filterChain forward method

    F

    For each  element in the web application deployment descriptor, multiple instances of a filter may be created by the web container


    正确答案: E,B
    解析: 暂无解析

  • 第23题:

    单选题
    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?()
    A

    Remote Proxy

    B

    Front Controller

    C

    Service Activator

    D

    Intercepting Filter

    E

    Business Delegate


    正确答案: B
    解析: 暂无解析

  • 第24题:

    单选题
    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?()
    A

     HttpSession

    B

     ServletConfig

    C

     ServletContext

    D

     HttpServletRequest

    E

     HttpServletResponse


    正确答案: E
    解析: 暂无解析