Want to know Pass4sure 70-487 Exam practice test features? Want to lear more about Microsoft Developing Windows Azure and Web Services certification experience? Study Exact Microsoft 70-487 answers to Regenerate 70-487 questions at Pass4sure. Gat a success with an absolute guarantee to pass Microsoft 70-487 (Developing Windows Azure and Web Services) test on your first attempt.
Q51. DRAG DROP - (Topic 2)
The GetQueueItems() action in the InboundQueueController controller is not populating the view with data. The action must populate the view with data by calling the GetExternalOrders() method in the ExternalQueueService service using the ChannelFactory class.
You need to modify the action to populate the view with 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:
Q52. - (Topic 1)
You are adding a new REST service endpoint to the FlightDataController controller. It
returns flights from the consolidated data sources only for flights that are late.
You need to write a LINQ to Entities query to extract the required data.
Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: D
Explanation: Explanation/Reference:
D is right because you send result as REST so if you use “AsQueryable” the result is
deferred to the next enumeration of your result.
D is not optimized but will works.
A will break at runtime.
Credits to Rem
Q53. - (Topic 1)
Errors occasionally occur when saving data using the FlightInfoContext ADO.NET Entity Framework context. Updates to the data are being lost when an error occurs.
You need to ensure that data is still saved when an error occurs by retrying the operation. No more than five retries should be performed.
Which code segment should you use as the body of the SaveChanges() method in the FlightInfoContext.es file?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: A
Q54. - (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: D
Explanation: With the model first workflow, you can design a model in a designer.
Q55. - (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
Q56. 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:
Q57. - (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 customers. Customers are filtered on Country and, if provided, on CompanyName.
You have an Entity Framework context named db.
The Customer class is shown below.
You need to execute a single deferred query to return the filtered list of customers. Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: C
Q58. HOTSPOT - (Topic 4)
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: 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.)
Answer:
Q59. - (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.
Q60. 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: