You are developing a WCF service. The service will stream messages to clients on the internal network. You must use Windows Authentication, and all messages must be binary encoded. You need to configure the service. What should you do?

To answer, drag the appropriate elements to the correct location or locations in the answer area. Each 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.

Select and Place:

Correct Answer:

QUESTION 22

DRAG DROP

You are developing a WCF service. The WCF service requires implementations of the new data contracts to validate against the old schema. You need to develop a new data contract without breaking current functionality. 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.

Select and Place:

Correct Answer:

QUESTION 23

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?

Single

PerRequest

PerCall

Multiple

PerSession

Correct Answer: C

QUESTION 24

DRAG DROP

You are creating a WCF service. The service endpoints must be exposed to the Windows Azure Service Bus. The service bus has a namespace named RestaurantSB. The key provider is “owner”. You need to modify the web.config file to expose the endpoints. How should you modify the file?

To answer, drag the appropriate attributes to the correct location or locations in the answer area. Each attribute 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.

Select and Place:

Correct Answer:

QUESTION 25

DRAG DROP

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.

Select and Place:

Correct Answer:

QUESTION 26

DRAG DROP

You are developing an ASP.NET MVC Web API application. The application must meet the following requirements:

It must send or receive data without the use of a buffer.

It must allow up to 1 MB of data to be received.

It must allow up to 2 MB of data to be sent.

You need to complete the code to meet the 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.

Select and Place:

Correct Answer:

QUESTION 27

DRAG DROP

You are developing an ASP.NET Web API action method.

The action method must return the following JSON in the message body.

{“Name”: “Fabrikam”, “VendorId”: 9823, Items”: [“Dogs”, “Cats”] }

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.

Select and Place:

Correct Answer:

QUESTION 28

You are designing an ASP.NET Web API application. You need to select an HTTP verb to allow blog administrators to remove a comment. Which HTTP verb should you use?

PUT

DELETE

POST

GET

Correct Answer: B

QUESTION 29

DRAG DROP

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.

Select and Place:

Correct Answer:

QUESTION 30

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 all orders along with customer information. Lazy loading has been disabled. The Order class is shown below.

You need to return the orders and customer information in a single round trip to the database. Which code segment should you use?