Breathing of 70-487 free draindumps materials and questions for Microsoft certification for examinee, Real Success Guaranteed with Updated 70-487 pdf dumps vce Materials. 100% PASS Developing Windows Azure and Web Services exam Today!
Q31. 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 methods to update and delete 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:
Q32. - (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.
With which code segment should you replace the body of the SaveChanges() method in the FlightInfoContext.es file?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: C
Explanation: Explanation/Reference:
EntitySqlException: Represents errors that occur when parsing Entity SQL command text.
This exception is thrown when syntactic or semantic rules are violated.
SqlException: The exception that is thrown when SQL Server returns a warning or error.
This class cannot be inherited.
EntityCommandExecutionException : Represents errors that occur when the underlying
storage provider could not execute the specified command. This exception usually wraps a
provider-specific exception.
Q33. - (Topic 3)
You need to update the ImportBooks() method to use database transactions.
Which code segment should you use?
A. SqlConnection.BeginTransaction(IsolationLevel.RepeatableRead);
B. SqlConnection.BeginTransaction(IsolationLeve.ReadUnconvnited);
C. SqlConneetion.BeginTransaction(IsolationLevel.Serializable);
D. SqlConnection.BeginTransaction(IsolationLevel.Snapshot);
Answer: B
Explanation: * scenario: The ImportBooks() method must keep a copy of the data that can be accessed while new books are being imported without blocking reads.
* ReadUncommitted A dirty read is possible, meaning that no shared locks are issued and no exclusive locks are honored.
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 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/…
Q36. - (Topic 4)
You are preparing to develop a set of libraries for a company.
The libraries must be shared across the company.
You need to create a remote NuGet feed that exposes the libraries.
What should you do? (Each answer presents part of the solution. Choose all that apply.)
A. Install the NuGet.Feed Package.
B. Install the NuGet.Server Package.
C. Configure the Packages folder located in the system.webserver section of the web application's Web.config.
D. Create a new Empty Web Site in Visual Studio 2012.
E. Configure the Packages folder located in the appSettings section of the web application's Web.config.
F. Add packages to the Packages folder.
G. Create a new Empty Web Application in Visual Studio 2012.
Answer: B,E,F,G
Explanation: Explanation/Reference:
Q37. - (Topic 4)
You are designing an ASP.NET Web API application.
You need to select an HTTP verb to allow blog administrators to moderate a comment.
Which HTTP verb should you use?
A. GET
B. POST
C. DELETE
D. PUT
Answer: D
Q38. - (Topic 2)
The QueueDetail entity type must inherit from the InboundQueue entity type in the ExternalQueue service project using table-per-type inheritance.
You need to modify the entities in the designer.
What should you do? (Each correct answer presents part of the solution. Choose all that apply.)
A. Remove the OrderNum property in InboundQueue.
B. Remove the OrderNum property in QueueDetail.
C. Set the QueueDetail BaseType to InboundQueue.
D. Remove the association between the entities.
E. Right-click the entities and validate the table mapping.
F. Set the InboundQueue BaseType to QueueDetail.
Answer: B,C,D,E
Explanation: http://www.robbagby.com/entity-framework/entity-framework-modeling-table-per-type-inheritance/
Q39. DRAG DROP - (Topic 4)
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:
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.)
Answer:
Q40. DRAG DROP - (Topic 2)
You add a class named ShippingInfo.
You need to modify the IShippingService interface and the ShippingInfo class to meet the technical requirements.
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: