Which of the following modes are provided by application pools?

Which of the following modes are provided by application pools? Each correct answer represents a
complete solution. Choose all that apply.

Which of the following modes are provided by application pools? Each correct answer represents a
complete solution. Choose all that apply.

A.
In-process

B.
Classic Mode

C.
Integrated Mode

D.
InProc

Explanation:
The mode of an application pool affects how the server processes request for managed code. It
works in two modes:
1.Integrated Mode: In this mode, an application uses the integrated request-processing architecture
of IIS and ASP.NET.
2.Classic Mode: In this mode, the server will continue to route requests for managed code through
Aspnet_isapi.dll, processing requests the same as if the application was running in IIS. It is used to
maintain compatibility with older applications.

Answer A is incorrect. The In-process mode is the default session state mode. It is used to specify
the SessionStateMode enumeration. The In-process mode is used to store session state values and
variables in memory on the local Web server. It is the only mode that supports the Session_OnEnd
event.
Note: If Web-garden mode is enabled by setting the webGarden attribute to true in the
processModel element of the application’s Web.config file, avoid using the In-process mode because
data can be lost if different requests for the identical session are served by different worker
processes.

Answer D is incorrect. The InProc mode is a session management mode provided by ASP.NET, which
stores session state in memory on the Web server. It is a default mode. It offers better performance
than StateServer and SQLServer modes. However, it is limited in load-balanced scenarios where
increasing scalability is given more importance than performance. This mode is used for simple
applications. However, applications that use multiple Web servers or persist session data between
application restarts should use the StateServer or SQLServer modes.



Leave a Reply 0

Your email address will not be published. Required fields are marked *