[Free] Get all latest Microsoft 70-487 Actual Tests 91-100

Ensurepass

QUESTION 91

DRAG DROP

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 a method to add products.

 

You have the following code:

 

clip_image001

 

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.

 

clip_image003

 

Correct Answer:

clip_image005

 

 

QUESTION 92

You are developing a .NET application that uses the HttpClient type to call an ASP.NET Web API application. The API call returns a list of customers in JSON format and logs the results. The URI for the API call is in a variable named address. You need to make the API call without blocking. Which code segment should you use?

 

clip_image006

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: A

Explanation:

Example:

// Create an HttpClient instance

11: HttpClient client = new HttpClient();

12:

13: // Send a request asynchronously continue when complete

14: client.GetAsync(_address).ContinueWith(

15: (requestTask) =>

16: {

17: // Get HTTP response from completed task.

18: HttpResponseMessage response = requestTask.Result;

19:

20: // Check that response was successful or throw exception

21: response.EnsureSuccessStatusCode();

22:

23: // Read response asynchronously as JsonValue and write out top facts for each country

24: response.Content.ReadAsAsync<JsonArray>().ContinueWith(

25: (readTask) =>

 

 

QUESTION 93

DRAG DROP

You are developing a .NET application that uses the HttpClient type to access an ASP.NET Web API application.

 

You need to add a header to specify that data is returned as JSON. You have the following code:

 

clip_image007

 

Which code segments should you include in Target 1 and Target 2 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

 

clip_image008

 

Correct Answer:

clip_image009

 

 

 

 

 

 

 

 

 

 

 

 

QUESTION 94

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:

 

clip_image010

 

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.

 

clip_image011

 

Correct Answer:

clip_image012

 

 

QUESTION 95

DRAG DROP

You have a UI element library.

 

You need to build a NuGet package to integrate the library into your projects.

 

What should you do?

 

To answer, drag the appropriate code elements to the correct location or locations in the answer area. Each code element 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.

 

clip_image013

 

Correct Answer:

clip_image014

 

 

QUESTION 96

HOTSPOT

You are developing a WCF service.

 

The service must be interoperable with ASP.NET web service clients. In addition, it must have a time-out of three hours.

 

You need to configure the service to meet the requirements.

 

You have the following markup:

 

clip_image015

 

Which markup segments should you include in Target 1, Target 2, Target 3, Target 4, Target 5, Target 6 and Target 7 to complete the markup?

 

To answer, select the appropriate markup segment from each drop-down list in the answer area.

 

clip_image016

 

Correct Answer:

clip_image017

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

QUESTION 97

DRAG DROP

You are configuring a web application for deployment.

 

You need to create a SetParameters.xml file to configure the IIS application pool.

 

You have the following markup:

 

clip_image018

 

Which configuration values should you include in Target 1 and Target 2 to complete the markup?

 

To answer, drag the appropriate configuration values to the correct targets in the answer area. Each configuration value 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.

 

clip_image020

 

Correct Answer:

clip_image022

 

QUESTION 98

You are developing an ASP.NET MVC application. The application has a page that updates an image stored in a database. Members of the EntityClient namespace are used to access an ADO.NET Entity Framework data model. Images and associated metadata are stored in a single database table. You need to run a single query that updates an image and associated metadata in the database while returning only the number of affected rows. Which method of the EntityCommand type should you use?

 

A.

ExecuteNonQuery()

B.

ExecutcScalar()

C.

ExecuteDbDataReader()

D.

ExecuteReader()

 

Correct Answer: A

 

 

QUESTION 99

You are developing a new ASP.NET MVC application that does not have an existing database. The requirements for the application are not complete, and the SQL data model will likely change. You need to choose an approach to visually manage a data model. Which approach should you use?

 

A.

Physical First

B.

Database First

C.

Code First

D.

Model First

 

Correct Answer: D

Explanation:

With the model first workflow, you can design a model in a designer.

 

 

QUESTION 100

You are designing an ASP.NET Web API application. You need to select an HTTP verb to allow blog administrators to modify the text of a comment. Which HTTP verb should you use?

 

A.

GET

B.

DELETE

C.

POST

D.

PUT

 

Correct Answer: D

 

Instant Access to Download Testing Software & PDF File for Microsoft 70-487 Real Exam

Instant Access to Try Microsoft 70-487 Free Demo

This entry was posted in 70-487 Actual Tests and tagged , , , , , . Bookmark the permalink.