nerdexam
Microsoft

98-361 · Question #133

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 C. 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…

Understanding Web Applications

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
  • BViewState
  • CApplication
  • DCookies

How the community answered

(41 responses)
  • A
    12% (5)
  • B
    2% (1)
  • C
    80% (33)
  • D
    5% (2)

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

#ASP.NET#state management#Application state#session management

Community Discussion

No community discussion yet for this question.

Full 98-361 Practice