Which markup segments should you include in Target 1, T…

HOTSPOT
You 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 the application
seems to take a long time to return data for a specific clinic even if they have viewed it recently.
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:

HOTSPOT
You 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 the application
seems to take a long time to return data for a specific clinic even if they have viewed it recently.
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:

Answer:

Explanation:
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).
https://msdn.microsoft.com/en-us/library/system.web.configuration.outputcacheprofile
(v=vs.110).aspx



Leave a Reply 5

Your email address will not be published. Required fields are marked *


Rick

Rick

first should be “true”

savel

savel

I disagree,
If you put No-Store to true, you say dont cache me. But you should improve performance by caching content for 36 hours! So No-Store = False!
Otherwise explane please.

bt

bt

No-Store = true means dont store the cache in windows folders. in another version of the question it says people see sensitive information in folders. so that one should be no-store true. this particular one doesnt say it. so it can be no-store=false.

Marilyn

Marilyn

2017/Sep/28 New 70-487 Exam Questions and Answers Free Updated Today!

QUESTION 71
You need to choose the appropriate data access technology for the cookbook area of the web application.
Which data access technology should you choose?

A. WCF Data Services
B. LINQ to SQL
C. Entity Framework
D. ADO.NET

Answer: A
Explanation:

QUESTION 72
You are preparing to write the data access code for the children’s book area of the web site.
You need to review the requirements and identify the appropriate data access technology.
What should you do?

A. Use ADO.NET Entity Framework.
B. Use a Web Service.
C. Use the WCF Data Services.
D. Use LINQ to SQL.

Answer: A

QUESTION 73
The PurchaseOrders.xml file contains all of the purchase orders for the day.
You need to query the XML file for all of the billing addresses.
Which code segment should you use?
73_thumb[1]

A. Option A
B. Option B
C. Option C
D. Option D

Answer: D

QUESTION 74
You need to create an OData filter expression that returns books that match the following characteristics:
– Published after 1/1/2000
– Have “Science” as the first word
Which filter statement should you use?
74_thumb[1]

A. Option A
B. Option B
C. Option C
D. Option D

Answer: D
Explanation:

QUESTION 75
You need to update the ImportBooks() method to use database transactions.
Which code segment should you use?

A. SqlConnection.BeginTransaction(IsolationLevel.RepeatableRead);
B. SqlConnection.BeginTransaction(IsolationLeve.ReadUnconvnited);
C. SqlConneetion.BeginTransaction(IsolationLevel.Serializable);
D. SqlConnection.BeginTransaction(IsolationLevel.Snapshot);

Answer: B
Explanation:

QUESTION 76
You need to implement the Get() method in the bookstore Web API application to be able to find books by using an ad hoc query.
Which method should you use?
76_thumb[1]

A. Option A
B. Option B
C. Option C
D. Option D

Answer: D

QUESTION 77
Drag and Drop Question
You need to update the GetBook() method to retrieve book data by using ADO.NET.
You have the following code:
77_thumb[1]
Which code segments should you include in Target 1, Target 2, Target 3, Target 4 and Target 5 to complete the code? (To answer, drag the appropriate code segments to the correct targets in the answer area. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)
77-1_thumb[1]
Answer:
77-2_thumb[1]

QUESTION 78
You need to create an OData query expression to return the ten books with the largest number of sales.
78_thumb[1]
Which query expression should you use?

A. Option A
B. Option B
C. Option C
D. Option D

Answer: C
Explanation:

QUESTION 79
Drag and Drop Question
You are developing an ASP.NET MVC Web API application.
The methods of the Web API must return details about the result of the operation.
You need to create methods to update and delete products.
You have the following code:
79_thumb
Which code segments should you include in Target 1, Target 2, Target 3, Target 4 and Target 5 to complete the code? (To answer, drag the appropriate code segments to the correct targets in the answer area. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)
79-1_thumb[1]
Answer:
79-2_thumb[1]

QUESTION 80
Hotspot Question
You are developing an application.
The application must be deployed from Team Foundation Server after a successful build is completed.
The Process tab of the Build Definition screen is shown in the exhibit. (Click the Exhibit button.)
80_thumb[1]
You need to configure the automated deployment.
In which section should you define the parameters for the automated deployment? (To answer, select the appropriate section in the answer area.)
80-1_thumb[1]
Answer:
80-2_thumb[1]

More 70-487 Exam Questions and Answers from: http://www.mcpdguide.com/?s=70-487