PrepAway - Latest Free Exam Questions & Answers

Which SessionState mode should you use?

###BeginCaseStudy###

Testlet 1
Background
You are developing an online shopping web application.
Business Requirements
A user is not required to provide an email address. If a user enters an email address, it must be verified to
be a valid email address.
Information about the first product on the product page must fade out over time to encourage the user to
continue browsing the catalog.
Administrators must be able to edit information about existing customers.
Administrators also must be able to specify a default product on the product page.
Technical Requirements
General:
The web store application is in a load-balanced web farm. The load balancer is not configured to use server
affinity.
The web store application isan ASP.NET MVC application written in Visual Studio.
Products:
The value of the product ID property must always be greater than 0.
The Products page for mobile devices must display to mobile users. The Products page for desktop devices
must display to desktop users.
Storage:
The data must be stored in a serialized XML data format.
Serialized objects must be schema-independent.
Exception handling:
Exceptions originating from IIS must display a page with support contact information.
Some page links expire, and users who access these links encounter 404 errors.
Exceptions must be logged by using the WriteLog method of the Utility class.
Browser and device support:
The application must support image format conversions from .bmp to .jpeg for mobile devices.
The application must support image format conversions from .bmp to .png for desktop devices.
Application Structure

###EndCaseStudy###

You need to configure session storage in the web.config file to meet the technical requirements for scalability.
Which SessionState mode should you use? (Each correct answer presents a complete solution. Choose all that
apply.)

PrepAway - Latest Free Exam Questions & Answers

A.
StateServer

B.
InProc

C.
AutoDetect

D.
SqlServer

Explanation:
ASP.NET session state supports several different storage options for session data. Each option is identified by
a value in the SessionStateMode enumeration. The following list describes the available session state modes:
* StateServer mode, which stores session state in a separate process called the ASP.NET state service. This
ensures that session state is preserved if the Web application is restarted and also makes session state
available to multiple Web servers in a Web farm.
* SQLServer mode stores session state in a SQL Server database. This ensures that session state is
preserved if the Web application is restarted and also makes session state available to multiple Web servers in
a Web farm.
* InProc mode, which stores session state in memory on the Web server. This is the default.
* Custom mode, which enables you to specify a custom storage provider.
* Off mode, which disables session state.
https://msdn.microsoft.com/en-us/library/ms178586.aspx


Leave a Reply