Exit 70-486 Developing ASP.NET MVC Web Applications
Question 2 of 5
0% complete
Q2 Multiple choice

You are developing an ASP.NET MVC application that delivers real-time game results to sports fans. The application includes the following code. Line numbers are included for reference only.

The source data for the game results is updated every 30 seconds.

Testers report the following issues with the application:

You need to correct the performance issues.

Which two changes should you make to the code? Each correct answer presents part of the solution.

Select all that apply.

  • A

    Replace the code at line 07 with the following code segment:[OutputCache(Duration =30, VaryByParam = "none", Location = OutputCacheLocation.Client, NoStore = true)]

  • B

    Replace the code at line 12 with the following code segment:[OutputCache(Duration = 30, VaryByParam = "none", Location = OutputCacheLocation.Server, NoStore = true)]

  • C

    Replace the code at line 07 with the following code segment:[OutputCache(Duration = 3600, VaryByParam = "none", Location = OutputCacheLocation.Server, NoStore = false)]

  • D

    Replace the code at line 12 with the following code segment:[OutputCache(Duration = 3600, VaryByParam = "none", Location = OutputCacheLocation.Client, NoStore = true)]