aiotestking uk

70-487 Exam Questions - Online Test


70-487 Premium VCE File

Learn More 100% Pass Guarantee - Dumps Verified - Instant Download
150 Lectures, 20 Hours

Q1. - (Topic 4) 

You are developing an ASP.NET MVC web application that contains the following HTML. 

<table id= “customer” ></table> 

You also have an ASP.NET Web API application that contains a call for retrieving customers. 

You must send and retrieve the data in the most compact format possible. 

You need to update the HTML for the customers table to contain data from the Web API application. 

Which script segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q2. - (Topic 1) 

You need to recommend a data access technology to the contractor to retrieve data from the new data source. 

Which data access technology should you recommend? 

A. LINQ to XML 

B. ADO.NET Entity Framework 

C. ADO.NET DataSets 

D. WCF Data Services 

Answer:

Q3. - (Topic 4) 

You are developing an ASP.NET MVC application. The application is an order processing system that uses the ADO.NET Entity Framework against a SQL Server database. It has a controller that loads a page that displays all orders along with customer information. Lazy loading has been disabled. 

The Order class is shown below. 

You need to return the orders and customer information in a single round trip to the database. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q4. - (Topic 4) 

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? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

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) => 

Q5. HOTSPOT - (Topic 4) 

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: 

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.) 

Answer:  

Q6. DRAG DROP - (Topic 4) 

You are developing an ASP.NET Web API action method. 

The action method must return the following JSON in the message body. 

{" Name ":" Fabrikam", "Vendor Id": 9823, "Items": ["Apples", "Oranges"] } 

You need to return an anonymous object that is serialized to JSON. 

What should you do? (To answer, drag the appropriate code segments to the correct location or locations 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. 

Answer:  

Q7. - (Topic 3) 

The PurchaseOrders.xml file contains all of the purchase orders for the day. 

You need to query the XML file for all of the shipping addresses. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q8. - (Topic 3) 

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:

Q9. - (Topic 4) 

You are designing an ASP.NET Web API application. 

You need to select an HTTP verb to allow blog administrators to remove a comment. 

Which HTTP verb should you use? 

A. PUT 

B. DELETE 

C. POST 

D. GET 

Answer:

Q10. DRAG DROP - (Topic 4) 

You are developing a WCF service. 

You need to implement transport security by using NTLM authentication and 

NetTcpBindings. 

Which configuration values should you use? (To answer, drag the appropriate configuration values to the correct location or locations 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.) 

Answer: