Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam 70-487 topic 1 question 131 discussion

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

HOTSPOT -
You are updating an existing multitenant ASP.NET MVC application for medical clinics. The application aggressively uses output caching to improve performance by caching content for 36 hours. The application uses a query string parameter named "clinicID" that contains the clinic that the user is currently viewing.
Users report that they are occasionally seeing data for the wrong clinic. Users also report that sensitive data is stored in the browser cache folder on their computers.
You need to configure web.config to resolve the reported problems.
You have the following markup:

Which markup segments should you include in Target 1, Target 2 and Target 3 to complete the markup? (To answer, select the correct markup segment from each drop-down list in the answer area.)
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Target 1: noStore="false"
The page that has the OutputCacheProfile.NoStore property set to true issues a response specifying in its header to prevent secondary storage of sensitive information.
Target 2: VaryByParam ="clinicID"
The VaryByParam is a semicolon-delimited set of parameters used to vary the cached output. It allows varying the cached output by GET query string or form
POST parameters. For instance, you can vary the user-control output to the cache by specifying the user-control name along with either a query string or a form
POST parameter.
Incorrect: Not varyByControl="ClinicID"
The VaryByControl is a semicolon-delimited set of IDs of controls to be cached.
Target 3: duration=129600"
The Duration represents the time in seconds that the page or user control is cached. Setting this property establishes an expiration policy for HTTP responses from the page or control to which it applies and will automatically cause the caching of their output.
129600 seconds is 36 hours (60*60*36).
Reference:
https://msdn.microsoft.com/en-us/library/system.web.configuration.outputcacheprofile(v=vs.110).aspx

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
abalone
Highly Voted 4 years, 5 months ago
1. nostore = true
upvoted 25 times
dosper
4 years, 4 months ago
if you select nostore = true, no cache will be done. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#Cacheability
upvoted 3 times
tiger25
4 years, 2 months ago
This is about client browser caching. If noStore=true in the response the browser won't caching. But we are talking about server caching when using cacheOuput. NoStore = true won't exclude server caching, only client.
upvoted 8 times
mr_
3 years, 9 months ago
You are completely right. There is even requirement that users are not happy with storing sensitive data in their browser's cache folder (secondary storage) so that is why it has to be 'NoStore = true' to avoid client caching. Server caching will be still in place.
upvoted 6 times
...
...
exgam_20
3 years, 11 months ago
And that's the point, because the developer will need to debug the issue
upvoted 2 times
...
...
...
MaverickCalibre
Highly Voted 4 years, 4 months ago
"nostore = ""true"" The page that has the OutputCacheProfile.NoStore property set to true issues a response specifying in its header to prevent secondary storage of sensitive information."
upvoted 10 times
...
kvijen
Most Recent 3 years, 5 months ago
noStore = true
upvoted 1 times
...
supersunny
4 years, 2 months ago
So sorry, it must be noStore=true to resolve the problems and cashing should be off.
upvoted 6 times
...
supersunny
4 years, 2 months ago
nostore should be set to false since caching is required.
upvoted 2 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 ...