We provide real 70 487 dumps exam questions and answers braindumps in two formats. Download PDF & Practice Tests. Pass Microsoft 70 487 dumps Exam quickly & easily. The 70 487 exam PDF type is available for reading and printing. You can print more and practice many times. With the help of our Microsoft 70 487 pdf dumps pdf and vce product and material, you can easily pass the exam ref 70 487 developing windows azure and web services exam.
Q31. DRAG DROP - (Topic 4)
You are developing a WCF Data Services service in Visual Studio 2012 to display movie information from a SQL Server database that changes every 24 hours. The service is defined in the following class.
The application contains the following Entity Framework model.
The service must only return data for movies that are currently in theaters.
You need to add a method to the MovieService class to filter the data.
How should you build the method? (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:
Q32. DRAG DROP - (Topic 4)
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:
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:
Q33. - (Topic 3)
You need to configure the server to self-host the bookstore's Web API application. Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: C
Explanation: MapHttpRoute Method Maps the specified route template. Use the option with "api/…
Q34. DRAG DROP - (Topic 4)
You are supporting a WCF data contract that returns a price calculation that can be expanded to add new data members.
Clients using the old version of the data contract must be supported.
You need to define the data contract so that the data serializer can put unknown data members into a property bag.
You have the following code:
Which code segments should you include in Target 1 and Target 2 to complete the data contract? (To answer, drag the appropriate code elements to the correct targets 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:
Q35. - (Topic 2)
You need to regenerate the service proxies to include task-based asynchronous method signatures.
Which command should you use?
A. aspnet_regiis.exe /t:code http://localhost:62965/UploadCallbackService.svc
B. svcutil.exe /t:code http://localhost:62965/UploadCallbackService.svc
C. aspnet_compiler.exe /t:code http://localhost:62965/UploadCallbackService.svc
D. aspnet_regiis.exe /t:code http://localhost:62965/UploadService.svc
E. svcutil.exe /t:code http://localhost:62965/UploadService.svc
Answer: B
Explanation: http://msdn.microsoft.com/en-us/library/aa347733.aspx
Q36. DRAG DROP - (Topic 4)
You are developing a WCF service application.
The application must meet the following requirements:
Operations must have 30 second timeouts.
The service must have a transaction scope.
Transactions must flow from the client to the server.
You need to write a transactional service contract and implementation class to meet the requirements.
You have the following code:
Which code segments should you include in Target 1, Target 2, Target 3 and Target 4 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:
Q37. - (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
Q38. DRAG DROP - (Topic 4)
You are developing a RESTful application by using ASP.NET MVC. The application is a pet management system and implements the following method in a controller for retrieving pet data.
The method must only accept JSON data using the standard MIME type.
You need to implement a controller that saves pet data and return a properly formatted
HTTP/1.1 protocol response.
You have the following code:
Which code segments should you include in Target 1, Target 2, Target 3 and Target 4 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:
Q39. - (Topic 3)
You need to choose the appropriate data access strategy for the college textbook area of the web application.
Which data access technology should you implement?
A. ADO.NET
B. Entity Data Model (EDM)
C. WCF Data Services
D. LINQ to SQL
Answer: A
Explanation: * Scenario: The college textbook area of the web application must get data from a daily updated CSV file.
* ADO.NET reads the CSV file in a very similar way as table in database.
Q40. - (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: D