070-503 無料問題集「Microsoft TS: Microsoft .NET Framework 3.5 C Windows Communication Foundation」
You are creating a distributed application by using Microsoft .NET Framework 3.5.
You use Windows Communication Foundation (WCF) to create the application. The operations provided by the WCF server use the remote resources of other computers.
These methods use the credentials provided by the client applications.
You need to ensure that the WCF server can impersonate the client applications to access the remote resources.
Which client application settings should you use?
You use Windows Communication Foundation (WCF) to create the application. The operations provided by the WCF server use the remote resources of other computers.
These methods use the credentials provided by the client applications.
You need to ensure that the WCF server can impersonate the client applications to access the remote resources.
Which client application settings should you use?
正解:B
解答を投票する
You create a client application by using Microsoft .NET Framework 3.5. The client application uses a Windows Communication Foundation (WCF) service.
The WCF service reads the value of the incoming message headers by using the following code segment.

The following code fragment is a part of the application configuration file. (Line numbers are included for reference only.)

The client application adds a message header each time it calls the WCF service.
You need to ensure that the message header provides the following values to its parameters.

Which code fragment should you insert at line 04?

The WCF service reads the value of the incoming message headers by using the following code segment.

The following code fragment is a part of the application configuration file. (Line numbers are included for reference only.)

The client application adds a message header each time it calls the WCF service.
You need to ensure that the message header provides the following values to its parameters.

Which code fragment should you insert at line 04?

正解:C
解答を投票する
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You have successfully created two interfaces: IMyService and IMyServiceClient.
You need to ensure that the service is able to call methods from the client application by using the IMyServiceClient interface.
Which code segment should you use?

You need to ensure that the service is able to call methods from the client application by using the IMyServiceClient interface.
Which code segment should you use?

正解:D
解答を投票する
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You write the following code fragment in the service configuration file. (Line numbers are included for reference only.)

You need to register the custom service behavior in the service configuration file. Which code fragment should you insert at line 10?

You write the following code fragment in the service configuration file. (Line numbers are included for reference only.)

You need to register the custom service behavior in the service configuration file. Which code fragment should you insert at line 10?

正解:C
解答を投票する
You create a Windows Communication Foundation (WCF) service by using Microsoft .NET framework 3.5.
You write the following code segment for a service contract.
[ServiceContract]
public interface IOrderManager
{
[OperationContract]
void ProcessOrder(int ordered);
}
You need to ensure that the WCF service meets the following requirements:
Which method implementation should you use?

You write the following code segment for a service contract.
[ServiceContract]
public interface IOrderManager
{
[OperationContract]
void ProcessOrder(int ordered);
}
You need to ensure that the WCF service meets the following requirements:
Which method implementation should you use?

正解:D
解答を投票する
You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5.
You add the following code segment to the service.

You add the following code segment to the client application. 01 public double PerformCalculations (double num1, double num2) 02 {
04 }
You need to ensure that the DisposeCalculator operation is always called. Which code segment should you insert at line 03?

You add the following code segment to the service.

You add the following code segment to the client application. 01 public double PerformCalculations (double num1, double num2) 02 {
04 }
You need to ensure that the DisposeCalculator operation is always called. Which code segment should you insert at line 03?

正解:A
解答を投票する
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. Client applications receive the original fault messages that the service generates. You need to create a custom service behavior to add a fault message handler to all channel dispatchers. What should you do?
正解:B
解答を投票する
You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You write the following code segment. (Line numbers are included for reference only.)
01 <SetviceContract(SessionMode:=SessionMode.Required)> _
02 Public Interface lOrderManager 04 Sub CloseOrder()
05 End Interface
You need to decorate the operation as the method that closes the current session.
Which code segment should you insert at line 03?
01 <SetviceContract(SessionMode:=SessionMode.Required)> _
02 Public Interface lOrderManager 04 Sub CloseOrder()
05 End Interface
You need to decorate the operation as the method that closes the current session.
Which code segment should you insert at line 03?
正解:A
解答を投票する
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You add the following code fragment to the app.config file for the service.

You need to enable personal identifiable information (PII) logging for the second trace source.
What should you do?
You add the following code fragment to the app.config file for the service.

You need to enable personal identifiable information (PII) logging for the second trace source.
What should you do?
正解:A
解答を投票する