Developing ASP.NET MVC Web Applications — Question 1

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 short-term state information.
You need to persist the application state during the session.
What should you implement?

Answer options

Correct answer: C

Explanation

Implementing a state server allows session information to be stored in a centralized location, making it accessible across multiple web servers in the farm. This setup ensures that even if one server fails, the session state is preserved. Options A and B do not provide the required shared session state for a web farm, and option D is not designed for handling session state.