nerdexam
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)
  • A
    81% (26)
  • B
    3% (1)
  • C
    9% (3)
  • D
    6% (2)

Community Discussion

No community discussion yet for this question.

Full 70-515 Practice