nerdexam
Microsoft

70-518 · Question #58

You are designing a Windows Presentation Foundation (WPF) application. The WPF application displays indicators to compare your company's past performance to the current day's operations data. The…

The correct answer is C. Use System.Runtime.Caching with a sliding expiration. Runtime.Caching is the critical here since it is updated every five minites=> A, D out. Sliding expiration will not loose cached data so easily. B out => C Better Answer : Use System.Runtime.Caching with a sliding expiration.

Designing for Data Access

Question

You are designing a Windows Presentation Foundation (WPF) application. The WPF application displays indicators to compare your company's past performance to the current day's operations data. The WPF application accesses historic data from your company's data warehouse through a Web service, and accesses current data directly from a Microsoft SQL Server 2008 database. The WPF application must meet the following requirements:

  • Retrieve historic data from the data warehouse at application startup

and then once per day.

  • Retrieve current data from the database every five minutes, and then

update the indicators.

  • Cache all retrieved data.
  • Target the .NET Framework 4 Client Profile.

You need to recommend an approach to data caching. What should you recommend?

Options

  • AUse System.Web.Caching with a sliding expiration.
  • BUse System.Runtime.Caching with an absolute expiration.
  • CUse System.Runtime.Caching with a sliding expiration.
  • DUse System.Web.Caching with are absolute expiration.

How the community answered

(29 responses)
  • A
    7% (2)
  • B
    3% (1)
  • C
    76% (22)
  • D
    14% (4)

Explanation

Runtime.Caching is the critical here since it is updated every five minites=> A, D out. Sliding expiration will not loose cached data so easily. B out => C Better Answer : Use System.Runtime.Caching with a sliding expiration.

Topics

#System.Runtime.Caching#sliding expiration#absolute expiration#data refresh

Community Discussion

No community discussion yet for this question.

Full 70-518 Practice