최신 070-503 무료덤프 - Microsoft TS: Microsoft .NET Framework 3.5 C Windows Communication Foundation
You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service contains the following code segment.

Client applications pass an instance of the Customer class to the service.
You create a new version of the data contract and replace the Name property with the FirstName property. You need to ensure that the existing client applications can continue to consume the
service without modifying their code. Which code segment should you use?



Client applications pass an instance of the Customer class to the service.
You create a new version of the data contract and replace the Name property with the FirstName property. You need to ensure that the existing client applications can continue to consume the
service without modifying their code. Which code segment should you use?


정답: D
You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. The service will be hosted on a Web server. You plan to deploy the service in an existing Web application.
You need to identify the Web applications on the Web server that are registered for WCF.
Which utility should you use?
You need to identify the Web applications on the Web server that are registered for WCF.
Which utility should you use?
정답: B
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 create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You need to ensure that the callback channel between the service and the client application is available for the service to send a status message.
Which code segment should you use?
You need to ensure that the callback channel between the service and the client application is available for the service to send a status message.
Which code segment should you use?
정답: D
You create a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5.
The WCF service contains the following code segment.

A console application hosts the WCF service. A Microsoft Windows client application uses the WCF service.
You need to implement the callback operation for the client application. You also need to ensure that the callback operation will not encounter deadlocks during execution.

The WCF service contains the following code segment.

A console application hosts the WCF service. A Microsoft Windows client application uses the WCF service.
You need to implement the callback operation for the client application. You also need to ensure that the callback operation will not encounter deadlocks during execution.

정답: B
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service contains the following code segment.
<ServiceContract0> _ Public Interface IMyService
<OperationContract(lsOneWay:=True, _ Protectionl_evel:=Protectionl_evel.None)> _ <TransactionFlow(TransactionFlowOption.Allowed)> _ Sub DoSomethingQ End Interface
You need to ensure that the DoSomething operation can participate in transactions.
Which code segment should you use to replace the existing operation contract?
<ServiceContract0> _ Public Interface IMyService
<OperationContract(lsOneWay:=True, _ Protectionl_evel:=Protectionl_evel.None)> _ <TransactionFlow(TransactionFlowOption.Allowed)> _ Sub DoSomethingQ End Interface
You need to ensure that the DoSomething operation can participate in transactions.
Which code segment should you use to replace the existing operation contract?
정답: B
You are replacing an ASMX Web service with a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
The ASMX Web service has a number of existing clients, which you cannot recompile and redeploy. You need to maintain backward compatibility with the existing clients.
Which code fragment should you use?

The ASMX Web service has a number of existing clients, which you cannot recompile and redeploy. You need to maintain backward compatibility with the existing clients.
Which code fragment should you use?

정답: D
You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You write the following code segment.

The implementation of the MyMethod operation must call back the CallbackMethod operation. You need to ensure that the service meets the following requirements:
Which service implementation should you use?


The implementation of the MyMethod operation must call back the CallbackMethod operation. You need to ensure that the service meets the following requirements:
Which service implementation should you use?

정답: C
You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You add the following code segment to a configuration file. (Line numbers are included for reference only)
01 <configuration> 02 <system.serviceModel>
04 </system.serviceModel>
05 </configuration
You need to enable the performance counters to monitor the ServiceModelOperation object of the service.
You also need to ensure that the performance counters are disabled for all other services.
What should you do?
You add the following code segment to a configuration file. (Line numbers are included for reference only)
01 <configuration> 02 <system.serviceModel>
04 </system.serviceModel>
05 </configuration
You need to enable the performance counters to monitor the ServiceModelOperation object of the service.
You also need to ensure that the performance counters are disabled for all other services.
What should you do?
정답: 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 remote database management application by using Microsoft Windows Forms and Microsoft .NET Framework 3.5. You use the Windows Communication Foundation model to create the application.
You write the following code segment. (Line numbers are included for reference only.)

You need to ensure that each time a client application calls the Open() method, a new service instance is created.
Which code segment should you insert at line 03?
You write the following code segment. (Line numbers are included for reference only.)

You need to ensure that each time a client application calls the Open() method, a new service instance is created.
Which code segment should you insert at line 03?
정답: D
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service will be hosted in a Console application.
You need to configure the service by using a configuration file other than the default app.config file. Which code segment should you use?

You need to configure the service by using a configuration file other than the default app.config file. Which code segment should you use?

정답: A
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service will be hosted in a managed Console application.
The service endpoint has an address that is relative to the base address of the service. You need to programmatically add the base address to the service.
What should you do?
The service endpoint has an address that is relative to the base address of the service. You need to programmatically add the base address to the service.
What should you do?
정답: C
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 Function PerformCalculations(ByVal numberl As Double, _ ByVal number2 As Double) As Double
03 End Function
You need to ensure that the DisposeCalculator operation is always called.
Which code segment should you insert at line 02?

You add the following code segment to the service.

You add the following code segment to the client application.
01 Public Function PerformCalculations(ByVal numberl As Double, _ ByVal number2 As Double) As Double
03 End Function
You need to ensure that the DisposeCalculator operation is always called.
Which code segment should you insert at line 02?

정답: A
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
The service contains the following code segment.
[ServiceContract]
public interface IMathSrvc
{
[OperationContract]
void AddNumbers(int num);
[OperationContract]
int Clear();
}
You need to ensure that the service meets the following requirements:
Which code segment should you use to replace the existing code segment?
The service contains the following code segment.
[ServiceContract]
public interface IMathSrvc
{
[OperationContract]
void AddNumbers(int num);
[OperationContract]
int Clear();
}
You need to ensure that the service meets the following requirements:
Which code segment should you use to replace the existing code segment?
정답: B
You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application consists of the following components:
An ASP.NET Web application that is deployed on a Web server named WEB1 An ASMX Web service that is deployed on an application server named APP1 A Microsoft SQL Server database that is deployed on a database server named SQL1 The ASP.NET application connects to an ASMX Web service. The APP1 server hosts several ASMX Web service applications. The ASMX Web service stores and retrieves data from SQL1.
You need to ensure that the secure communication strategy meets the following requirements:
The communication configuration between WEB1 and APP1 must be secured without other applications being affected. Server authentication and data encryption must be performed between APP1 and SQL1. Which two secure communication protocols should you use? (Each correct answer presents part of the solution. Choose two.)
An ASP.NET Web application that is deployed on a Web server named WEB1 An ASMX Web service that is deployed on an application server named APP1 A Microsoft SQL Server database that is deployed on a database server named SQL1 The ASP.NET application connects to an ASMX Web service. The APP1 server hosts several ASMX Web service applications. The ASMX Web service stores and retrieves data from SQL1.
You need to ensure that the secure communication strategy meets the following requirements:
The communication configuration between WEB1 and APP1 must be secured without other applications being affected. Server authentication and data encryption must be performed between APP1 and SQL1. Which two secure communication protocols should you use? (Each correct answer presents part of the solution. Choose two.)
정답: C,F
You create a client application by using Microsoft .NET Framework 3.5. The client application consumes a Windows Communication Foundation service that uses the netMsmqBinding binding.
The binding uses a private transactional queue named Library.
The following code fragment is part of the application configuration file.
(Line numbers are included for reference only.)
01 <endpoint binding="netMsmqBinding"
02 contract="ServiceReference.ILibrary"
04 />
You need to specify the address of the endpoint. Which attribute should you insert at line 03?
The binding uses a private transactional queue named Library.
The following code fragment is part of the application configuration file.
(Line numbers are included for reference only.)
01 <endpoint binding="netMsmqBinding"
02 contract="ServiceReference.ILibrary"
04 />
You need to specify the address of the endpoint. Which attribute should you insert at line 03?
정답: C
You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. The service will authenticate the client applications by using Personal Information Cards.
You write the following code segment. (Line numbers are included for reference only.)

You need to ensure that only those client applications that provide a valid e-mail address can execute the Update method.
Which code segment should you insert at line 08?

You write the following code segment. (Line numbers are included for reference only.)

You need to ensure that only those client applications that provide a valid e-mail address can execute the Update method.
Which code segment should you insert at line 08?

정답: B
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You want to use a built-in binding to support reliable sessions.
You need to create a service that uses SOAP to transfer messages between endpoints. The service must deliver the messages only once, and in the same order in which they were sent.
Which type of binding should you use?
You need to create a service that uses SOAP to transfer messages between endpoints. The service must deliver the messages only once, and in the same order in which they were sent.
Which type of binding should you use?
정답: A