What should you recommend?

Posted by: Pdfprep Category: 70-487 Tags: , ,

ReportApp will shut down every night.

However, data from the searches performed during the night must still be collected.

You need to recommend a solution to meet the performance requirements for home.aspx.

What should you recommend?
A . ViewState
B . MemoryCache
C . OutputCache
D . ApplicationCache

Answer: C

Explanation:

Scenario: When home.aspx is displayed, the rendered page must be cached for 10 minutes.

Page output caching

The output of an action method on a controller can be cached using the [OutputCache]attribute on the method. Actions methods that return views will have the rendered page cached, while methods returning JSON data will have that data saved. A number of properties on the OutputCacheAttribute class control how data is cached.

CacheProfile- If a number of methods will have the same cache settings, it makes sense to use the web.config file to create a cache profile that can be used across all these methods. The Duration attribute of the CacheProfile determines how long, in seconds, the output should be cached. To save an item for 10 minutes, duration would be set to 600.

[OutputCache(Duration=600)]

References: http://failedturing.blogspot.se/2014/10/microsoft-70-486-design-caching-strategy.html

Leave a Reply

Your email address will not be published.