session.removeAll(USE_CASE_ATTRS);
for ( String attr : USE_CASE_ATTRS ) {session.remove(attr);}
for ( String attr : USE_CASE_ATTRS ) {session.removeAttribute(attr);}
for ( String attr : USE_CASE_ATTRS ) {session.deleteAttribute(attr);}
session.deleteAllAttributes(USE_CASE_ATTRS);
第1题:
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?()
第2题:
第3题:
You have a Web application that is configured for personalization. You need to access personalization data from one of the pages of the Web application by using the minimum amount of administrative effort. What should you do? ()
第4题:
You are troubleshooting an ASP.NET Web application. System administrators have recently expanded your web farm from one to two servers. Users are periodically reporting an error message about invalid view state. You need to fix the problem. What should you do?()
第5题:
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?()
第6题:
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?()
第7题:
You modify an existing Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You add a theme to the ASP.NET application. You need to apply the theme to override any settings of individual controls. What should you do?()
第8题:
Edit the ASP.NET runtime version in IIS 6.0.
Edit the System.Web section handler version number in the machine.config file.
Add the requiredRuntime configuration element to the Web.config file and set the version attribute to v3.5.
Add the supportedRuntime configuration element in the Web.config file and set the version attribute to v3.5.
第9题:
Use
Use
Use
Use
第10题:
Access to session-scoped attributes is guaranteed to be thread-safe by the web container.
To activate URL rewriting, the developer must use the HttpServletResponse.setURLRewriting method.
If the web application uses HTTPS, then the web container may use the data on the HTTPS request stream to identify the client.
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.
第11题:
Set up vertical partitioning.
Set up horizontal partitioning.
Increase the number of role instances.
Change the role instance size to large.
第12题:
Create an HttpSessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getName method on the event object.
Create an HttpSessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getName method on the event object.
Create an SessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getAttributeName method on the event object.
Create an SessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getAttributeName method on the event object.
第13题:
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?()
第14题:
Which the statement is true about web container session management()?
第15题:
You have a Microsoft ASP.NET Framework version 1.0 application. The application does not use any features that are deprecated in the Microsoft .NET Framework version 3.5. The application runs on Microsoft IIS 6.0. You need to configure the application to use the ASP.NET Framework version 3.5 without recompiling the application. What should you do?()
第16题:
Your company has an existing Windows Communication Foundation (WCF) service that allows business partners to place orders. The service uses netMsmqBinding. You find that processing every order in its own transaction is causing a delay. You need to ensure that the service is configured to process multiple orders in one transaction. What should you do? ()
第17题:
Your network contains a Windows Server 2008 server that has the Web Server (IIS) server role installed. You have a Web application that uses a custom application pool. The application pool is set to recycle every 1,440 minutes. The Web application does not support multiple worker processes. You need to configure the application pool to ensure that users can access the Web application after the application pool is recycled. What should you do?()
第18题:
You write a logging function for a Web Form. You call the logging function from the Page_Unload event handler. You test the Web Form and notice that the Page_Unload event handler does not call the logging function. You need to ensure that the logging function is called. What are two possible ways to achieve this goal? ()
第19题:
session.removeAll(USE_CASE_ATTRS);
for ( String attr : USE_CASE_ATTRS ) {session.remove(attr);}
for ( String attr : USE_CASE_ATTRS ) {session.removeAttribute(attr);}
for ( String attr : USE_CASE_ATTRS ) {session.deleteAttribute(attr);}
session.deleteAllAttributes(USE_CASE_ATTRS);
第20题:
Access the personalization data from the Session property of the HttpContext object.
Access the personalization data from the Application property of the HttpContext object.
Access the personalization data from the Cache property of the HttpContext object.
Access the personalization data from the Profile property of the HttpContext object.
第21题:
Clear the Index this attribute in the Active Directory option for each attribute that is added by the application.
Clear the Attribute is active option for each attribute that is added by the application.
Clear the Replicate this attribute to the Global Catalog option for each attribute that is added by the application.
Clear the Allow this attribute to be shown in advanced view option for each attribute that is added by the application.
第22题:
The object of the manager attribute should implement the HttpSessionBindingListener and it should call the removeAttribute method on the appropriate session attributes.
The object of the manager attribute should implement the HttpSessionListener and it should call the removeAttribute method on the appropriate session attributes.
The object of the manager attribute should implement the HttpSessionBindingListener and it should call the deleteAttribute method on the appropriate session attributes.
The object of the manager attribute should implement the HttpSessionListener and it should call the deleteAttribute method on the appropriate session attributes.
第23题:
User user = // retrieve the User object from the database session.setDurationInterval(user.getSessionDuration());
User user = // retrieve the User object from the database session.setMaxDuration(user.getSessionDuration());
User user = // retrieve the User object from the database session.setInactiveInterval(user.getSessionDuration());
User user=//retrieve the User object from the database session.setDuration(user.getSessionDuratio());
User user = // retrieve the User object from the database session.setMaxInactiveInterval(user.getSessionDuration());
第24题:
In the Web.config file of the application,set the Theme attribute of the pages element to the name of the theme.
In the Web.config file of the application,set the StyleSheetThemeattribute of the pages element to the name of the theme.
Add a master page to the application. In the @Master directive,set the Theme attribute to the name of the theme.
Add a master page to the application. In the @Master directive,set the StyleSheetTheme attribute to the name of the theme.