nerdexam
Microsoft

70-515 · Question #7

You are implementing a method in an ASP.NET application that includes the following requirements. - Store the number of active bugs in the cache. - The value should remain in the cache when there…

The correct answer is B. Cache.Insert("Trigger", DateTime.Now, null. See the full explanation below for the reasoning.

Question

You are implementing a method in an ASP.NET application that includes the following requirements.

  • Store the number of active bugs in the cache.
  • The value should remain in the cache when there are calls more often

than every 15 seconds.

  • The value should be removed from the cache after 60 seconds.

You need to add code to meet the requirements. Which code segment should you add?

Options

  • ACache.Insert("ActiveBugs", result, null,
  • BCache.Insert("Trigger", DateTime.Now, null,
  • CCache.Insert("ActiveBugs", result, null,
  • DCacheDependency cd = new CacheDependency(null,

How the community answered

(44 responses)
  • A
    7% (3)
  • B
    80% (35)
  • C
    2% (1)
  • D
    11% (5)

Community Discussion

No community discussion yet for this question.

Full 70-515 Practice