exam questions

Exam 70-486 All Questions

View all questions & answers for the 70-486 exam

Exam 70-486 topic 1 question 58 discussion

Actual exam question from Microsoft's 70-486
Question #: 58
Topic #: 1
[All 70-486 Questions]

You are designing am ASP.NET Core MVC application.
The application must store secure information that is specific to an individual user. The data must be automatically purged when the user logs off.
You need to save transient information in a secure data store.
Which data store should you use?

  • A. Session state
  • B. Database storage
  • C. Profile properties
  • D. Application state
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
ASP.NET session state enables you to store and retrieve values for a user as the user navigates ASP.NET pages in a Web application. HTTP is a stateless protocol. This means that a Web server treats each HTTP request for a page as an independent request. The server retains no knowledge of variable values that were used during previous requests. ASP.NET session state identifies requests from the same browser during a limited time window as a session, and provides a way to persist variable values for the duration of that session.
References:
https://msdn.microsoft.com/en-us/library/ms178581.aspx

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
AlexFromGalax
5 years, 6 months ago
A/B, A because of automatic purge and B because of save transient data
upvoted 2 times
fagdfgsg
5 years, 2 months ago
You can use Session State outproc , using the SQL Option you get the security & purged data
upvoted 2 times
...
mr_
4 years, 12 months ago
I understood that the data needs to be stored/saved in transient manner but not persisted anywhere. Data in DB storage is not transient by design so I think it is wrong answer (B is wrong IMO). Only A - session state is transient, safe and user-specific. App state is non-user-specific - that is why that one is wrong too. Profile properties is persisted so it is not transient as session state. Just my thoughts. May be wrong.
upvoted 7 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...