单选题Your web application requires the adding and deleting of many session attributes during a complex usecase. A bug report has come in that indicates that an important session attribute is being deleted too soonand a NullPointerException is being thrown several interactions after the fact. You have decided to create asession event listener that will log when attributes are being deleted so you can track down when theattribute is erroneously being deleted. Which listener class will accomplish this debugging goal?()ACreate an HttpSessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getName method on the event object.BCreate an HttpSessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getName method on the event object.CCreate an SessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getAttributeName method on the event object.DCreate an SessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getAttributeName method on the event object.

单选题
Your web application requires the adding and deleting of many session attributes during a complex usecase. A bug report has come in that indicates that an important session attribute is being deleted too soonand a NullPointerException is being thrown several interactions after the fact. You have decided to create asession event listener that will log when attributes are being deleted so you can track down when theattribute is erroneously being deleted. Which listener class will accomplish this debugging goal?()
A

Create an HttpSessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getName method on the event object.

B

Create an HttpSessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getName method on the event object.

C

Create an SessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getAttributeName method on the event object.

D

Create an SessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getAttributeName method on the event object.


参考解析

解析: 暂无解析

相关考题:

A developer is designing the presentation tier for a web application that relies on a complex session bean.The session bean is still being developed and the APIs for it are NOT finalized. Any changes to the sessionbean API directly impacts the development of the presentation tier.  Which design pattern provides a meansto manage the uncertainty in the API?()A、View HelperB、Front ControllerC、Composite ViewD、Intercepting FilterE、Business Delegate

A Company.com developer is designing the presentation tier for a web application that relies on a complex session bean. The session bean is still being developed and the APIs for are NOT finalized. Any changes to the session bean API directly impacts the development of the presentation tier.  Which design pattern provides a means to manage the uncertainty in the API?()A、 View HelperB、 Front ControllerC、 Composite ViewD、 Intercepting FilterE、 Business DelegateF、 Chain of Responsibility

Your web application requires the adding and deleting of many session attributes during a complex usecase. A bug report has come in that indicates that an important session attribute is being deleted too soonand a NullPointerException is being thrown several interactions after the fact. You have decided to create asession event listener that will log when attributes are being deleted so you can track down when theattribute is erroneously being deleted. Which listener class will accomplish this debugging goal?()A、Create an HttpSessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getName method on the event object.B、Create an HttpSessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getName method on the event object.C、Create an SessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getAttributeName method on the event object.D、Create an SessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getAttributeName method on the event object.

During initial cluster planning session, a requirement is mandated that application monitoring will  Be used to monitor the production database and three application servers. Since all the application servers rely on the database being active, only one resource group has been planned to manage the starting/stopping of the cluster resources.  How ill the initial design impact the use of application monitoring?()  A、 Only one application server per resource group can be monitored.B、 Process monitoring is part of RSCT and requires no special scripts.C、 Any application can be monitored as long as it has an application server.D、 Having all application servers in one resource group improves recovery time.

You have a use case in your web application that adds several session-scoped attributes. At the end of theuse case, one of these objects, the manager attribute, is removed and then it needs to decide which of theother session-scoped attributes to remove. How can this goal be accomplished?()A、The object of the manager attribute should implement the HttpSessionBindingListener and it should call the removeAttribute method on the appropriate session attributes.B、The object of the manager attribute should implement the HttpSessionListener and it should call the removeAttribute method on the appropriate session attributes.C、The object of the manager attribute should implement the HttpSessionBindingListener and it should call the deleteAttribute method on the appropriate session attributes.D、The object of the manager attribute should implement the HttpSessionListener and it should call the deleteAttribute method on the appropriate session attributes.

One of the use cases in your web application uses many session-scoped attributes. At the end of the usecase,you want to clear out this set of attributes from the session object. Assume that this static variableholds this set of attribute names: 201.private static final Set USE_CASE_ATTRS;  202.static { 203.USE_CASE_ATTRS.add("customerOID"); 204.USE_CASE_ATTRS.add("custMgrBean"); 205.USE_CASE_ATTRS.add("orderOID"); 206.USE_CASE_ATTRS.add("orderMgrBean"); 207.} Which code snippet deletes these attributes from the session object?()A、session.removeAll(USE_CASE_ATTRS);B、for ( String attr : USE_CASE_ATTRS ) {session.remove(attr);}C、for ( String attr : USE_CASE_ATTRS ) {session.removeAttribute(attr);}D、for ( String attr : USE_CASE_ATTRS ) {session.deleteAttribute(attr);}E、session.deleteAllAttributes(USE_CASE_ATTRS);

For which three events can web application event listeners be registered?()A、When a session is createdB、After a servlet is destroyedC、When a session has timed outD、When a cookie has been createdE、When a servlet has forwarded a requestF、When a session attribute value is changed

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?()A、Add attributes to the session object.B、Add attributes on the request object.C、Add parameters to the request object.D、Use the pageContext object to add request attributes.E、Add parameters to the JSP’s URL when generating the request dispatcher.

Which the statement is true about web container session management()?A、 Access to session-scoped attributes is guaranteed to be thread-safe by the web container.B、 To activate URL rewriting, the developer must use the HttpServletResponse.setURLRewriting method.C、 If the web application uses HTTPS, then the web container may use the data on the HTTPS request stream to identify the client.D、 The JSESSIONID cookie is stored permanently on the client so that a user may return to the web application and the web container will rejoin that session.

A customer has a critical, performance-sensitive web application that connects to a multinode  Oracle RAC database. Which feature of WebLogic can provide significant performance benefit?()A、The Web Session Affinity feature of Active GridLink for RACB、WebLogic Clustering  C、The Transaction Affinity feature of Active GridLink for RACD、Coherence*Web Session Replication

A customer has a critical, performance-sensitive web application that connects to a multimode  Oracle RAC database. Which feature of WebLogic can provide signification benefit?()A、The Web Session Affinity feature of Active GridLink for RACB、WebLogic ClusteringC、The Transaction Affinity feature of Active GridLink for RACD、Coherence*Web Session Replication

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application uses Session objects. You are modifying the application to run on a Web farm. You need to ensure that the application can access the Session objects from all the servers in the Web farm. You also need to ensure that when any server in the Web farm restarts or stops responding, the Session objects are not lost.  What should you do?()A、Use the InProc Session Management mode to store session data in the ASP.NET worker process. B、Use the SQLServer Session Management mode to store session data in a common Microsoft SQL Server 2005 database. C、Use the SQLServer Session Management mode to store session data in an individual database for each Web server in the Web farm. D、Use the StateServer Session Management mode to store session data in a common State Server process on a Web server in the Web farm.

Examine the details of the Top 5 Timed Events in the following Automatic Workloads Repository (AWR)report:What are three possible causes for the latch-related wait events?()A、The size of the shared pool is too small.B、Cursors are not being shared.C、A large number COMMITS are being performed.D、There are frequent logons and logoffs.E、The buffers are being read into the buffer cache, but some other session is changing the buffers.

单选题One of the use cases in your web application uses many session-scoped attributes. At the end of the usecase,you want to clear out this set of attributes from the session object. Assume that this static variableholds this set of attribute names: 201.private static final Set USE_CASE_ATTRS;  202.static { 203.USE_CASE_ATTRS.add("customerOID"); 204.USE_CASE_ATTRS.add("custMgrBean"); 205.USE_CASE_ATTRS.add("orderOID"); 206.USE_CASE_ATTRS.add("orderMgrBean"); 207.} Which code snippet deletes these attributes from the session object?()Asession.removeAll(USE_CASE_ATTRS);Bfor ( String attr : USE_CASE_ATTRS ) {session.remove(attr);}Cfor ( String attr : USE_CASE_ATTRS ) {session.removeAttribute(attr);}Dfor ( String attr : USE_CASE_ATTRS ) {session.deleteAttribute(attr);}Esession.deleteAllAttributes(USE_CASE_ATTRS);

单选题In your test database, you find that a user’s session is executing a lot of SQL statements, resulting in the generation of a large number of trace files. While investigating the reason, you find that SQL trace has been enabled at the instance level.  You want to disable SQL trace, remotely, only for that user session to reduce the volume of trace data being generated.  How do you achieve this objective?()Aby setting the SQL_TRACE parameter to FALSE in the parameter fileBby using DBMS_MONITOR.SESSION_TRACE_DISABLE to disable the tracing for the user sessionCby setting the SQL_TRACE parameter to FALSE by using the ALTER SYSTEM command in the user sessionDby setting the SQL_TRACE parameter to FALSE by using the ALTER SESSION command in the user session

单选题A customer has a critical, performance-sensitive web application that connects to a multimode  Oracle RAC database. Which feature of WebLogic can provide signification benefit?()AThe Web Session Affinity feature of Active GridLink for RACBWebLogic ClusteringCThe Transaction Affinity feature of Active GridLink for RACDCoherence*Web Session Replication

单选题You are an administrator of a large campus network. Every switch on a floor within each building of your campus has been configured for a different VLAN. During implementation of the Junos Pulse Access Control Service, you must configure a RADIUS return attribute policy to apply a role representing a group of authenticated users that frequently transport their laptops from building to building and floor to floor. In the admin GUI, which policy element would you enable to accommodate these users?()AAdd Session-Timeout attribute with value equal to the session lifetimeBAdd Termination-Action attribute with value equal 1CVLANDOpen port

单选题You have a single Active Directory directory service domain. You have an application that adds Active Directory Schema attributes during installation. The attributes replicate as part of global catalog replication. Your user account is a member of the Domain Admins, Schema Admins, and Enterprise Admins global groups. You test the application and decide not to deploy it to production.  You need to ensure that the attributes that are added by the application are no longer available in Active Directory.  Using the Active Directory Schema snap-in,what should you do?()A Clear the Index this attribute in the Active Directory option for each attribute that is added by the application.B Clear the Attribute is active option for each attribute that is added by the application.C Clear the Replicate this attribute to the Global Catalog option for each attribute that is added by the application.D Clear the Allow this attribute to be shown in advanced view option for each attribute that is added by the application.

单选题Which statement is true about web container session management?()AAccess to session-scoped attributes is guaranteed to be thread-safe by the web container.BTo activate URL rewriting, the developer must use the HttpServletResponse.setURLRewriting method.CIf the web application uses HTTPS, then the web container may use the data on the HTTPS request stream to identify the client.DThe JSESSIONID cookie is stored permanently on the client so that a user may return to the web application and the web container will rejoin that session.

单选题You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application uses Session objects. You are modifying the application to run on a Web farm. You need to ensure that the application can access the Session objects from all the servers in the Web farm. You also need to ensure that when any server in the Web farm restarts or stops responding, the Session objects are not lost.  What should you do?()AUse the InProc Session Management mode to store session data in the ASP.NET worker process. BUse the SQLServer Session Management mode to store session data in a common Microsoft SQL Server 2005 database. CUse the SQLServer Session Management mode to store session data in an individual database for each Web server in the Web farm. DUse the StateServer Session Management mode to store session data in a common State Server process on a Web server in the Web farm.

单选题You have a use case in your web application that adds several session-scoped attributes. At the end of theuse case, one of these objects, the manager attribute, is removed and then it needs to decide which of theother session-scoped attributes to remove. How can this goal be accomplished?()AThe object of the manager attribute should implement the HttpSessionBindingListener and it should call the removeAttribute method on the appropriate session attributes.BThe object of the manager attribute should implement the HttpSessionListener and it should call the removeAttribute method on the appropriate session attributes.CThe object of the manager attribute should implement the HttpSessionBindingListener and it should call the deleteAttribute method on the appropriate session attributes.DThe object of the manager attribute should implement the HttpSessionListener and it should call the deleteAttribute method on the appropriate session attributes.

多选题For which three events can web application event listeners be registered? ()Awhen a session is createdBafter a servlet is destroyedCwhen a session has timed outDwhen a cookie has been createdEwhen a servlet has forwarded a requestFwhen a session attribute value is changed

单选题A Company.com developer is designing the presentation tier for a web application that relies on a complex session bean. The session bean is still being developed and the APIs for are NOT finalized. Any changes to the session bean API directly impacts the development of the presentation tier.  Which design pattern provides a means to manage the uncertainty in the API?()A View HelperB Front ControllerC Composite ViewD Intercepting FilterE Business DelegateF Chain of Responsibility

多选题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?()AAdd attributes to the session object.BAdd attributes on the request object.CAdd parameters to the request object.DUse the pageContext object to add request attributes.EAdd parameters to the JSP’s URL when generating the request dispatcher.

单选题During initial cluster planning session, a requirement is mandated that application monitoring will  Be used to monitor the production database and three application servers. Since all the application servers rely on the database being active, only one resource group has been planned to manage the starting/stopping of the cluster resources.  How ill the initial design impact the use of application monitoring?()A Only one application server per resource group can be monitored.B Process monitoring is part of RSCT and requires no special scripts.C Any application can be monitored as long as it has an application server.D Having all application servers in one resource group improves recovery time.

单选题A developer is designing the presentation tier for a web application that relies on a complex session bean.The session bean is still being developed and the APIs for it are NOT finalized. Any changes to the sessionbean API directly impacts the development of the presentation tier.  Which design pattern provides a meansto manage the uncertainty in the API?()AView HelperBFront ControllerCComposite ViewDIntercepting FilterEBusiness Delegate

单选题Your web application requires the adding and deleting of many session attributes during a complex usecase. A bug report has come in that indicates that an important session attribute is being deleted too soonand a NullPointerException is being thrown several interactions after the fact. You have decided to create asession event listener that will log when attributes are being deleted so you can track down when theattribute is erroneously being deleted. Which listener class will accomplish this debugging goal?()ACreate an HttpSessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getName method on the event object.BCreate an HttpSessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getName method on the event object.CCreate an SessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getAttributeName method on the event object.DCreate an SessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getAttributeName method on the event object.

单选题A customer has a critical, performance-sensitive web application that connects to a multinode  Oracle RAC database. Which feature of WebLogic can provide significant performance benefit?()AThe Web Session Affinity feature of Active GridLink for RACBWebLogic Clustering  CThe Transaction Affinity feature of Active GridLink for RACDCoherence*Web Session Replication