98-361 · Question #270
You have a Microsoft ASP.NET web application. You need to store a value that can be shared across users on the server. Which type of state management should you use?
The correct answer is B. application. Application state is a data repository available to all classes in an ASP.NET application. Application state is stored in memory on the server and is faster than storing and retrieving information in a database. Unlike session state, which is specific to a single user session…
Question
You have a Microsoft ASP.NET web application. You need to store a value that can be shared across users on the server. Which type of state management should you use?
Options
- Asession
- Bapplication
- Ccookies
- DViewState
How the community answered
(39 responses)- A3% (1)
- B77% (30)
- C13% (5)
- D8% (3)
Explanation
Application state is a data repository available to all classes in an ASP.NET application. Application state is stored in memory on the server and is faster than storing and retrieving information in a database. Unlike session state, which is specific to a single user session, application state applies to all users and sessions. Therefore, application state is a useful place to store small amounts of often-used data that does not change from one user to another.
Topics
Community Discussion
No community discussion yet for this question.