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. DRAG DROP - (Topic 3) 

You need to update the GetBook() method to retrieve book data by using ADO.NET. You have the following code: 

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

Answer:  

Q2. DRAG DROP - (Topic 4) 

You are developing an ASP.NET Web API application for currency conversion that will be consumed by a web browser by using a composite application that is served from another web domain. 

You need to configure the Web API. 

What should you do? (To answer, drag the appropriate XML elements to the correct location or locations in the answer area. Each XML 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.) 

Answer:  

Q3. - (Topic 4) 

You are developing a WCF service. 

A new service instance must be created for each client session. 

You need to choose an instancing mode. 

Which instance mode should you use? 

A. PerCall 

B. Single 

C. Multiple 

D. PerSession 

E. PerRequest 

Answer:

Q4. - (Topic 3) 

You need to create an OData query expression to return the ten books with the largest number of sales. 

Which query expression should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Explanation: 

Order by desc(ending) to get the posts with the largest number of sales at the top. Specify to display the top 10 posts. 

Q5. - (Topic 2) 

The GetVendors() action in the ProcessedOrderController controller is querying the database each time it is run. The GetVendors() action must query the database only if the cache is null. 

You need to add code to the action at line PC33 to cache the data. 

Which code segment can you use? (Each correct answer presents a complete solution. Choose all that apply.) 

A. cache.Set(new CacheItem("vendorKey", vendors), GetVendorPolicy()); 

B. cache.Add("vendors", vendors, new CacheItemPolicy()); 

C. cache.Add(new CacheItem("vendorKey", vendors) , GetVendorPolicy()); 

D. cache.AddOrGetExisting("vendorKey", context, new CacheItemPolicy()); 

Answer: A,C 

Q6. DRAG DROP - (Topic 2) 

The GetExternalOrders() method must use members of the EntityClient namespace to query the database for all records in the InboundQueue entity. 

You need to modify the GetExternalOrders() method to return the correct data. 

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

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 

Answer:

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

Q8. - (Topic 3) 

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:

Explanation: * Scenario: The cookbook functionality is contained within a client-side application that must connect to the server using HTTP and requires access to the data using JavaScript. 

* WCF Data Services (formerly known as "ADO.NET Data Services") is a component of the 

.NET Framework that enables you to create services that use the Open Data Protocol (OData) to expose and consume data over the Web or intranet by using the semantics of representational state transfer (REST). OData exposes data as resources that are addressable by URIs. Data is accessed and changed by using standard HTTP verbs of GET, PUT, POST, and DELETE 

* WCF Data Services uses the OData protocol for addressing and updating resources. In this way, you can access these services from any client that supports OData. OData enables you to request and write data to resources by using well-known transfer formats: Atom, a set of standards for exchanging and updating data as XML, and JavaScript Object Notation (JSON), a text-based data exchange format used extensively in AJAX application. 

Q9. DRAG DROP - (Topic 4) 

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

Answer:  

Q10. - (Topic 4) 

You are developing a WCF service that compares several data sources. The service takes a long time to complete. 

The service must meet the following requirements: 

. The client must be able to continue processing while the service is running. . The service must initiate communication with the client application when processing is complete. 

You need to choose a message pattern to meet the requirements. 

Which message pattern should you choose? 

A. One Way 

B. Streaming 

C. Duplex 

D. Request/Reply 

Answer: