exam questions

Exam 70-486 All Questions

View all questions & answers for the 70-486 exam

Exam 70-486 topic 1 question 39 discussion

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

You are developing an ASP.NET MVC application that uses forms authentication to verify that the user is logged in.
Authentication credentials must be encrypted and secure so no user identity is exposed.
You need to ensure that user credentials are persisted after users log on.
In which two locations can you store the credentials? Each correct answer presents a complete solution.

  • A. In Session on the server
  • B. In a cookie stored in the browser
  • C. In ViewData in the application
  • D. In TempData on the server
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️
Server sessions and cookies can both be configured to secure and they both persist after the users log on.
Incorrect Answers:
C: ViewData's life only lasts during current http request.
D: TempData is a bucket where you can dump data that is only needed for the following request. That is, anything you put into TempData is discarded after the next request completes.

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
Kayes
Highly Voted 5 years, 5 months ago
This question does not make sense. Why do we want to store user credential anywhere other than the database? After the login is complete we may store the token in cookie, but not credentials!
upvoted 6 times
tiger25
5 years, 2 months ago
Yeah, some kind of a stupid requirements
upvoted 1 times
...
eggzamtaker
4 years, 8 months ago
That's right, credentials should be stored in the database. The question is poorly worded. But, A,B are the best choices.
upvoted 1 times
...
...
Dharmatej
Most Recent 4 years, 6 months ago
I am sorry to post this question since it is out of topic. I have searched everywhere and could not find answers. what is the total number of questions that will be in the actual test? 30 0r 40 questions? any recent exam takers ?
upvoted 2 times
ossygt3
4 years, 6 months ago
50 Questions on Average
upvoted 2 times
...
...
Mayflower
4 years, 10 months ago
Only session state. Looks like question is wrong. similar to q. 21
upvoted 1 times
...
aousos
5 years, 1 month ago
we must use stored tokens in session or cookies after logging in not credentials
upvoted 1 times
...
lifetocode
5 years, 1 month ago
Storing on cookie won't make credential secure. I think, the only way for a secure storage to store on session state.
upvoted 3 times
...
Darshu
5 years, 4 months ago
why B, Correct?
upvoted 1 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 ...