Developing ASP.NET MVC Web Applications — Question 89

You are designing a distributed banking application that handles multiple customers. A user may log on to the site to perform activities such as checking balances, performing transactions, and other activities that must be done securely.
The application must store secure information that is specific to an individual user. The data must be automatically and securely purged when the user logs off.
You need to save transient information in a secure data store.
Which data store should you use?

Answer options

Correct answer: A

Explanation

The correct answer is A, NET session state, because it is designed to store user-specific data for the duration of their session, ensuring that the information is transient and securely purged when the user logs off. Options B, NET profile properties, and C, NET application state, are not suitable for transient data storage as they are intended for longer-term storage or shared data among users. Option D, Shared database, is also not appropriate for storing transient information securely tied to individual user sessions.