What should you implement?

Posted by: Pdfprep Category: 70-486 Tags: , ,

You are developing an ASP.NET MVC application. The application is deployed in a web farm and is accessed by many users.

The application must handle web server failures gracefully. The servers in the farm must share the state information.

You need to persist the application state during the session.

What should you implement?
A . A state server
B . Cookieless sessions
C . A web garden on the web servers
D . An InProc session

Answer: A

Explanation:

ASP.NET session state service provides a somewhat slower service than the in-process variant as we need to make calls to a remote server. All session data is stored in memory so shutting down the state machine will wipe out all session data as well.

Incorrect: Not D: The InProc option is particularly dangerous in a web farm environment. For example imagine one farm machine which stores the session state but not the other. Subsequent web requests from the same user may not read the correct session state.

References: https://dotnetcodr.com/2013/07/01/web-farms-in-net-and-iis-part-5-session-state­management/

Leave a Reply

Your email address will not be published.