Question 6 of 200
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:
Exam 70-487: Question 6 - Image 1
    Correct Answer:
    Exam 70-487: Question 6 - Image 2
Question 7 of 200
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 200
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:
Exam 70-487: Question 8 - Image 1
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:
Exam 70-487: Question 8 - Image 2
    Correct Answer:
    Exam 70-487: Question 8 - Image 3
Question 9 of 200
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 200
DRAG DROP -
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.
You have the following markup:
Exam 70-487: Question 10 - Image 1
Which elements should you include in Target 1, Target 2 and Target 3 to complete the markup? (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:
Exam 70-487: Question 10 - Image 2
    Correct Answer:
    Target1, Target 3: NetTcpBinding
    NetTcpBinding is the right choice for binary TCP communications that cross machine boundaries.
    NetTcpBinding is optimized for cross-machine communication. By default, it implements binary message encoding.
    NetTcpBinding specifies a secure, reliable, optimized binding suitable for cross-machine communication. By default, it generates a run-time communication stack with transport security and Windows authentication as default security settings. It uses the Transmission Control Protocol (TCP) for message delivery, and binary message encoding. Exam 70-487: Question 10 - Image 3