DRAG DROP
You are developing an ASP.NET MVC application in a web farm. The application has a page that
uploads a customer’s photo, resizes it, and then redirects the browser to a page where the new
image is displayed along with the final dimensions.
The final dimensions should be available only to the page where the new image 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.)
You need to store state and configure the application
DRAG DROP
You are developing an ASP.NET MVC application in a web farm. The application has a page that
uploads a customer’s photo, resizes it, and then redirects the browser to a page where the new
image is displayed along with the final dimensions.
The final dimensions should be available only to the page where the new image 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.)
The answers are Inproc and ViewData.
Explanation:
Target 1: InProc
Target 2: ViewData
* InProc mode, which stores session state in memory on the Web server. This is the default.
Understanding ViewData, ViewBag And TempData
http://www.binaryintellect.net/articles/36941654‐8bd4‐4535‐9226‐ddf47841892f.aspx
InProc doesn’t cover web farm. TempData is correct.
Correct answer is TempData and Sql server
I think Tantra is correct.
1 TempData
2 SQLserver
It is not clear to me why TempDate instead of ViewData but this may be helpful:
http://stackoverflow.com/questions/173159/difference-between-viewdata-and-tempdata
“When an action returns a RedirectToAction result it causes an HTTP redirect (equivalent to Response.Redirect). Data can be preserved in the TempData property (dictionary) of the controller for the duration of a single HTTP redirect request”
“No, ViewData will not preserve data through Redirect. That’s the main difference of TempData”
Also interesting article:
http://www.dotnettricks.com/learn/mvc/viewdata-vs-viewbag-vs-tempdata-vs-session
After all this, I believe TempData is correct
Confirmed by real exam:
TempData + SqlServer