exam questions

Exam 70-486 All Questions

View all questions & answers for the 70-486 exam

Exam 70-486 topic 1 question 110 discussion

Actual exam question from Microsoft's 70-486
Question #: 110
Topic #: 1
[All 70-486 Questions]

Customers download videos by using HTTP clients that support various content encodings.
You need to configure caching on the DownloadVideo action to maximize performance.
Which attribute should you add?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
  • E. Option E
Show Suggested Answer Hide Answer
Suggested Answer: E 🗳️
A VaryByParam property with the value "VideoId". When different values of the Id parameter are passed to the controller action, different cached versions of the
Details view are generated.
It is important to understand that using the VaryByParam property results in more caching and not less. A different cached version of the Details view is created for each different version of the Id parameter.
You can set the VaryByParam property to the following values:
* = Create a different cached version whenever a form or query string parameter varies. none = Never create different cached versions
Semicolon list of parameters = Create different cached versions whenever any of the form or query string parameters in the list varies
References:
https://docs.microsoft.com/en-us/aspnet/mvc/overview/older-versions-1/controllers-and-routing/improving-performance-with-output-caching-cs https://msdn.microsoft.com/en-us/library/system.web.mvc.outputcacheattribute_properties(v=vs.118).aspx

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
arohh
4 years, 5 months ago
I think answer E is right, because you have to cache every video individually. Therefore, "videoId" param is needed for distinguishing videos
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...