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

题目

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
更多“A developer has ”相关问题
  • 第1题:

    You work as an application developer at Certkiller .com. Certkiller .com has asked you to develop an application that monitors and controls the activities of a Windows service.You need to use the appropriate class to meet Certkiller .com’s requirements. What should you do?()

    • A、 Use the ServiceBase class.
    • B、 Use the ServiceInstaller class.
    • C、 Use the ServiceManager class.
    • D、 Use the ServiceController class.

    正确答案:D

  • 第2题:

    以下哪几项是Oracle客户端连接工具()

    • A、OEM
    • B、SQL*PLUS
    • C、NETCA
    • D、PLSQL DEVELOPER

    正确答案:A,B,D

  • 第3题:

    Where should a Developer go to freely manipulate inline style coding for an object?()

    • A、Design
    • B、Source
    • C、Properties
    • D、Controls

    正确答案: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 a web application that must verify for each request: The originating request is froma trusted network. The client has a valid session.The client has been authenticated. Which design pattern provides a solution in this situation?()
    A

    Transfer Object

    B

    Session Facade

    C

    Intercepting Filter

    D

    Template Method

    E

    Model-View-Controller


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

  • 第6题:

    单选题
    Your network contains an Active Directory domain named contoso.com. The domain contains a server named Server1 that runs Windows Server 2012 R2. Server1 has the Hyper- V server role installed. The domain contains a virtual machine named VM1. A developer wants to attach a debugger to VM1. You need to ensure that the developer can connect to VM1 by using a named pipe. Which virtual machine setting should you configure?()
    A

    Network Adapter

    B

    BIOS

    C

    Processor

    D

    COM 1


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

  • 第7题:

    单选题
    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


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

  • 第8题:

    单选题
    The Squeaky Bean company has decided to port their web application to a new J2EE 1.4 container. Whilereviewing the application, a developer realizes that in multiple places within the current application, nearlyduplicate code exists that finds enterprise beans. Which pattern should be used to eliminate this duplicatecode?()
    A

    Transfer Object

    B

    Front Controller

    C

    Service Locator

    D

    Intercepting Filter

    E

    Business Delegate

    F

    Model-View-Controller


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

  • 第9题:

    单选题
    A developer for the Company.com web site has been told that users may turn off cookie support in their browsers. What must the developer do to ensure that these customers can still use the web application?()
    A

     The developer must ensure that every URL is properly encoded using the appropriate URL rewriting APIs

    B

     The developer must provide an alternate mechanism for managing sessions and abandon theHttpSession mechanism entirely

    C

     The developer can ignore this issue. Web containers are required to support automatic URL rewriting when cookies are not supported

    D

     The developer must ass the string ?id= to the end of every URL to ensure that the conversion with the browser can continue.


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

  • 第10题:

    单选题
    Which statements about the garbage collection are true?()
    A

     The program developer must create a thread to be responsible for free the memory.

    B

     The garbage collection will check for and free memory no longer needed.

    C

     The garbage collection allow the program developer to explicity and immediately free the memory.

    D

     The garbage collection can free the memory used java object at expect time.


    正确答案: A
    解析: Java语言将内存分配和释放的工组交给了自己,程序员不必做这些工作,它提供一个系统级的线程跟踪每个内存的分配,在JVM的空闲处理中,垃圾收集线程将检查和释放不再使用的内存(即可以被释放的内存)。垃圾收集的过程在java程序的生存期中是自动的,不需要分配和释放内存,也避免了内存泄漏。可以调用System.gc()方法建议(suggest)JVM执行垃圾收集以使得可被释放的内存能立即被使用,当此方法返回的时候,JVM已经做了最大的努力从被丢弃的对象上回收内存空间。程序员不能指定收集哪些内存,一般而言也不用关心这个问题,除非是程序的内存消耗很大,特别是有很多临时对象时可以“建议“进行垃圾收集以提高可用内存。需要指出的是调用System.gc()方法不能保证JVM立即进行垃圾收集,而只能是建议,因为垃圾收集线程的优先级很低(通常是最低的)。

  • 第11题:

    多选题
    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
    解析: 暂无解析

  • 第12题:

    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

  • 第13题:

    Given the security constraint in a DD:// 101. 102. 103.Foo 104./Bar/Baz/* 105.POST 106. 107. 108.DEVELOPER 109. 110. And given that "MANAGER" is a valid role-name,which four are true for this security constraint?()

    • A、MANAGER can do a GET on resources in the /Bar/Baz directory.
    • B、MANAGER can do a POST on any resource in the /Bar/Baz directory.
    • C、MANAGER can do a TRACE on any resource in the /Bar/Baz directory.
    • D、DEVELOPER can do a GET on resources in the /Bar/Baz directory.
    • E、DEVELOPER can do only a POST on resources in the /Bar/Baz directory.
    • F、DEVELOPER can do a TRACE on any resource in the /Bar/Baz directory.

    正确答案:A,C,D,F

  • 第14题:

    The Squeaky Bean company has decided to port their web application to a new J2EE 1.4 container. Whilereviewing the application, a developer realizes that in multiple places within the current application, nearlyduplicate code exists that finds enterprise beans. Which pattern should be used to eliminate this duplicatecode?()

    • A、Transfer Object
    • B、Front Controller
    • C、Service Locator
    • D、Intercepting Filter
    • E、Business Delegate
    • F、Model-View-Controller

    正确答案:C

  • 第15题:

    A developer is designing a web application that makes many fine-grained remote data requests for eachclient request. During testing, the developer discovers that the volume of remote requests significantlydegrades 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

  • 第16题:

    单选题
    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
    解析: 暂无解析

  • 第17题:

    单选题
    A developer is designing a web application that makes many fine-grained remote data requests for eachclient request. During testing, the developer discovers that the volume of remote requests significantlydegrades 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


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

  • 第18题:

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


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

  • 第19题:

    单选题
    You work as an application developer at Certkiller .com. Certkiller .com has asked you to develop an application that monitors and controls the activities of a Windows service.You need to use the appropriate class to meet Certkiller .com’s requirements. What should you do?()
    A

     Use the ServiceBase class.

    B

     Use the ServiceInstaller class.

    C

     Use the ServiceManager class.

    D

     Use the ServiceController class.


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

  • 第20题:

    单选题
    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


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

  • 第21题:

    单选题
    A developer is designing a web application which extensively uses EJBs and JMS. The developer finds thatthere is a lot of duplicated code to build the JNDI contexts to access the beans and queues. Further,because of the complexity, there are numerous errors in the code. Which J2EE design pattern provides asolution for this problem?()
    A

    Command

    B

    Transfer Object

    C

    Service Locator

    D

    Session Facade

    E

    Business Delegate


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

  • 第22题:

    单选题
    John, a junior workflow developer, has approached you for advice on a workflow process that he is defining. He is unclear about the implications of selecting the Runnable checkbox while defining the Process Activity. What advice would you offer?()
    A

    Runnable allows the workflow engine to compile the process.

    B

    Runnable allows the process to be included as a stand-alone subprocess.

    C

    Runnable allows the workflow engine to check its status during process execution.

    D

    Runnable allows the workflow engine to define this as a top-level process and initiate it


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