You need to ensure that the transaction times out and aborts if the operation has not completed within 45 seco
You are developing a Windows Communication Foundation (WCF) service that executes a
longrunning operation. The service is accessed from your business applications in a server
transaction in which the client does not participate. You need to ensure that the transaction
times out and aborts if the operation has not completed within 45 seconds. What should you
do?
You need to ensure that the WCF service starts when the Windows Service is restarted
You are developing a Windows Service. The Windows Service will host a Windows
Communication Foundation (WCF) service. The Windows Service class will inherit from
ServiceBase. You need to ensure that the WCF service starts when the Windows Service is
restarted. What should you do in the Windows Service class?
Which code segment should you insert at line 07?
You are developing a Windows Communication Foundation (WCF) service to provide an
inmemory cache for many Web applications. The service contract is defined as follows.
(Line numbers are included for reference only.) You need to ensure that all users share the
cache. Which code segment should you insert at line 07?
You need to ensure that messages are secure and users are authenticated
You develop a Windows Communication Foundation (WCF) service that uses basic
authentication for client credentials. This service is currently configured to use message
security. The service is hosted on a server in workgroup mode. Users report that their
passwords are stolen when they use public computers. You need to ensure that messages
are secure and users are authenticated. You prevent the service from being called over
HTTP through Microsoft Internet Information Services (IIS) configuration. What should you
do next?
You need to ensure that the service verifies that the security token is not changed during transit
You are developing a Windows Communication Foundation (WCF) service. One of the
parameters used with the service operations is a security token. The security token is not
sensitive. The monitoring software tracks security tokens and can read tokens in clear text
only. The company security policy requires that you validate all clear text data passed over
the corporate network. You need to ensure that the service verifies that the security token is
not changed during transit. What should you do?
Which code segment should you insert at line 12?
You are developing a Windows Communication Foundation (WCF) service. The following
code defines and implements the service. (Line numbers are included for reference only.)
You need to ensure that two identical copies of the received message are created in the
service. Which code segment should you insert at line 12?
You need to set up the URI that is mapped to the service
You develop a Windows Communication Foundation (WCF) service. You name the service
MovieService in the Movie namespace. The service is hosted in Microsoft Internet
Information Services (IIS). You copy the assembly containing the service to the bin folder in
the virtual directory path. You need to set up the URI that is mapped to the service. What
should you do?
You need to ensure that the service always listens at net.pipe://SupplyChainServer/Pipe
You are developing a Windows Communication Foundation (WCF) service that is used to
check the status of orders placed by customers. The following code segment is part of your
service. (Line numbers are included for reference only.) You need to ensure that the service
always listens at net.pipe://SupplyChainServer/Pipe. What should you do?
You need to specify the endpoint information for the routing service
You are configuring a routing service to call a target service. The routing service has no
knowledge of the target service’s data tyes other than the service contract. The operation
contract for all of the methods of the target service specifies IsOneWay=true. You need to
specify the endpoint information for the routing service. What should you do?
You need to ensure that the service methods are asynchronous
You are modifying a Windows Communication Foundation (WCF) service that provides
access to report generation system. The following code segment is part of your service
contract. (Line numbers are included for reference only.) Client applications are blocked
while the service processes reports. You need to ensure that the service methods are
asynchronous. What should you do?