getcertified4sure.com

Get Smart with exam ref 70 487




Q41. - (Topic 4) 

You are developing a WCF service. 

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

You need to choose an instancing mode. 

Which instancing mode should you use? 

A. Single 

B. PerRequest 

C. PerCall 

D. Multiple 

E. PerSession 

Answer:


Q42. 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: 


Q43. DRAG DROP - (Topic 2) 

You need to modify the ExecuteCommandProcedure() method to meet the technical requirements. 

Which code segment should you use? 

Answer: 


Q44. 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: 


Q45. 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: 


Q46. - (Topic 4) 

You are developing an ASP.NET MVC application that reads and writes data from a SQL Server database. 

You need to maintain data integrity in all situations that use transactions. 

A. ReadUncommitted 

B. Repeatable 

C. Serializable 

D. ReadCommitted 

Answer:


Q47. - (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/ 


Q48. - (Topic 2) 

The GetExternalOrder() method in the ExternalQueueService service is throwing a runtime error. The method must query the database for a record that matches the orderNum parameter passed to the method. 

You need to modify the queryString string to retrieve the record. With which code segment should you replace line EQ64? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Q49. - (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:


Q50. 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: