Question 6 of 157

DRAG DROP -

You are developing a self-hosted WCF service that returns stock market information.

The service must be discoverable by any client application. You need to build the service host.

How should you build the host? (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 7 of 157

You are developing a WCF service that compares several data sources. The service takes a long time to complete.

The service must meet the following requirements:

✑ The client must be able to continue processing while the service is running.

✑ The service must initiate communication with the client application when processing is complete.

You need to choose a message pattern to meet the requirements.

Which message pattern should you choose?

    Correct Answer: C

    To meet the requirements of allowing the client to continue processing while the service is running and having the service initiate communication with the client when processing is complete, the Duplex message pattern should be used. A Duplex service contract allows both the client and the service to send messages independently. This pattern supports event-like behavior, enabling the service to notify the client upon completion of the processing.

Question 8 of 157

DRAG DROP -

You are developing a WCF service.

You need to implement transport security by using NTLM authentication and NetTcpBindings.

You have the following markup:

Which configuration values should you include in Target 1, Target 2, and Target 3 to complete the markup? (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 9 of 157

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?

    Correct Answer:

    To ensure a new service instance is created for each client session, the correct instance mode to use is PerSession. In PerSession mode, a new InstanceContext (and therefore a new service object) is created for each client session and maintained for the duration of that session. This is the appropriate choice when the service needs to maintain state information across multiple calls within the same client session.

Question 10 of 157

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: