exam questions

Exam 70-486 All Questions

View all questions & answers for the 70-486 exam

Exam 70-486 topic 1 question 59 discussion

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

DRAG DROP -
You are developing an ASP.NET MVC application in a web farm. The application has a page that accepts a customer's order, processes it, and then redirects the browser to a page where the order is displayed along with the shipping information.
The order information should be available only to the page where the order is displayed.
You need to store state and configure the application.
What should you do? To answer, drag the appropriate item to the correct location. Each item may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Target 1: InProc -

Target 2: ViewData -
InProc mode, which stores session state in memory on the Web server. This is the default.
Reference: Understanding ViewData, ViewBag And TempData
http://www.binaryintellect.net/articles/36941654-8bd4-4535-9226-ddf47841892f.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
BroBro
Highly Voted 5 years, 8 months ago
it's web farm i think TempData and SqlServer is rigth answer
upvoted 36 times
...
Dhaval
Highly Voted 5 years, 4 months ago
TempData, SqlServer are correct.
upvoted 14 times
...
northgaterebel
Most Recent 4 years, 5 months ago
I think ViewData and InProc. Question states: "The application has a page that accepts a customer's order, processes it, and then redirects the browser to a page where the order is displayed along with the shipping information." ViewData is used to transfer data from controller to view. So I fill out the order page, click Submit, the controller receives the data, processes it, possibly with a model, and hands it off to the view. Web farm is irrelevant. This is a stateless "guest" order. The server that provides the order page does not need to be the server that processes the order submit/return summary. These are separate actions.
upvoted 1 times
...
rdhainaut
4 years, 5 months ago
I agree SqlServer and TempData is the correct answer here
upvoted 2 times
...
rortegax2
4 years, 5 months ago
TempData can persist beyond a request, so it should be ViewData. https://www.dotnettricks.com/learn/mvc/viewdata-vs-viewbag-vs-tempdata-vs-session SqlServer because it is deployed in a webfarm.
upvoted 2 times
...
mr_
5 years ago
TempData and NOT ViewData because of redirection which would empty the ViewData - redirection is new request and ViewData stores data only in current request, not subsequent ones as TempData does.
upvoted 5 times
...
hungry_ape9000
5 years, 1 month ago
FINAL ANSWER: TempData SqlServer
upvoted 11 times
...
aousos
5 years, 1 month ago
web farm : tempData / SqlServer
upvoted 3 times
...
advenios
5 years, 7 months ago
The answer marked as correct seems odd. InProc sessions and web farms should not be combined.
upvoted 3 times
...
Mickey
5 years, 9 months ago
https://www.c-sharpcorner.com/UploadFile/3d39b4/inproc-session-state-mode-in-Asp-Net/ ViewData THEN InProc
upvoted 3 times
...
Aghie
5 years, 10 months ago
it should be, Store state to ViewState and set the mode to InProc.
upvoted 3 times
founderDev
5 years, 4 months ago
As @BroBro says, the correct answer is TempData and SqlServer
upvoted 10 times
...
Dev666
5 years, 1 month ago
Question states hosted in a Web farm so can't be InProc, as data is not shared between instances.
upvoted 4 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 ...