PrepAway - Latest Free Exam Questions & Answers

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
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.


PrepAway - Latest Free Exam Questions & Answers

Answer: See the explanation

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

11 Comments on “You need to store state and configure the application

  1. Chong says:

    The answer should be TempData and SqlServer. Page redirect means that the ViewData won’t persist between HTTP requests and web farm means that the InProc mode will cause problems with session state information not consistent across different web servers.




    4



    0

Leave a Reply