Microsoft
70-515 · Question #55
You are developing an ASP.Net MVC 2 view and controller. The controller includes an action method that retrieves rows from a Product table in Microsoft SQL Server database. You need to cache the…
The correct answer is A. Add the following <outputCacheSettings> section to the web.config file. See the full explanation below for the reasoning.
Question
You are developing an ASP.Net MVC 2 view and controller. The controller includes an action method that retrieves rows from a Product table in Microsoft SQL Server database. You need to cache the data that the action method returns. What should you do?
Options
- AAdd the following <outputCacheSettings> section to the web.config file.
- BAdd the following line of code to the controller.
- CAdd the following attribute to the action method
- DAdd the following directive to the top of the view
How the community answered
(32 responses)- A81% (26)
- B3% (1)
- C9% (3)
- D6% (2)
Community Discussion
No community discussion yet for this question.