Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
123576839-mcts-70562

123576839-mcts-70562

Ratings: (0)|Views: 9 |Likes:
Published by moopymoopy
123576839-mcts-70562
123576839-mcts-70562

More info:

Published by: moopymoopy on Feb 18, 2013
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

08/31/2013

pdf

text

original

 
Microsoft (70-562)TS: Microsoft .NET Framework 3.5  ASP.NET Application Development (VB)
Questions and answers along with explanations
 
Question 1
You have created a Web application using ASP.NET 3.5. The application stores state usingSession state.You are planning to deploy the application on a Web farm. The servers in the Web farm aredescribed in the exhibit. All servers are configured with a Secure Sockets Layer (SSL)certificate.A session must be disconnected if it has been idle for more than 10 minutes.You need to configure Session state.What should you do?A)Add the following element to Web.config:<sessionState mode="InProc"stateConnectionString="tcpip=192.168.10.20:443"timeout="10" />B)Add the following element to Web.config:<sessionState mode="StateServer"stateConnectionString="tcpip=192.168.10.20:42424"timeout="10" />C)Add the following element to Web.config:<sessionState mode="StateServer"stateConnectionString="tcpip=192.168.10.20:443"stateNetworkTimeout="10" />D)Add the following element to Web.config:<sessionState mode="SqlServer"sqlConnectionString="data source=192.168.10.20;Integrated Security=SSPI"sqlConnectionTimeout="10" />
 
Answer B
You should add the following element to Web.config:<sessionState mode="StateServer"stateConnectionString="tcpip=192.168.10.20:42424"timeout="10" />One way to support Session state on a Web farm is to use the ASP.NET state service. Tospecify that Session state should be stored in the ASP.NET state service, you need to set themode attribute to StateServer and specify a stateConnectionString that identifies the serverrunning state service. State service always listens on port 42424. You set the timeoutattribute to the number of minutes a session can be idle before it should be disconnected.You should not add the following element to Web.config:<sessionState mode="InProc"stateConnectionString="tcpip=192.168.10.20:443"timeout="10" />When Session state is configured with the mode of InProc, servers on a farm cannot sharesession state. Also, you do not identify a stateConnectionString when the mode is set toInProc because each server stores session state locally.You should not add the following element to Web.config:<sessionState mode="SqlServer"sqlConnectionString="data source=192.168.10.20;Integrated Security=SSPI"sqlConnectionTimeout="10" />You can use SQL Server to store session state on a Web farm. However, thesqlConnectionTimeout identifies the number of seconds to wait for a query to SQL Server,not the number of minutes to wait before disconnecting an idle session.You should not add the following element to Web.config:<sessionState mode="StateServer"stateConnectionString="tcpip=192.168.10.20:443"stateNetworkTimeout="10" />StateServer always listens on port 42424, not port 443. Also, the stateNetworkTimeout isthe number of seconds to wait for a network transmission between the Web server and theserver running the state service, not the amount of time to wait before disconnecting an idlesession.

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->