최신Microsoft TS: Microsoft .NET Framework 3.5 C Windows Communication Foundation - 70-503무료샘플문제
문제1
You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5.
You need to host the WCF service on the IIS Web server. First, you create a new folder for your application files. Next, you use the IIS management tool to create a Web application in the new folder.
Which three actions should you perform next? (Each correct answer presents part of the solution. Choose three.)
You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5.
You need to host the WCF service on the IIS Web server. First, you create a new folder for your application files. Next, you use the IIS management tool to create a Web application in the new folder.
Which three actions should you perform next? (Each correct answer presents part of the solution. Choose three.)
정답: A,D,F
문제2
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 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?
정답: B
문제3
You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service contains the following code segment.

You need to ensure that the service instance is recycled when the transaction is complete. Which line of code should you insert at line 06?

You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service contains the following code segment.

You need to ensure that the service instance is recycled when the transaction is complete. Which line of code should you insert at line 06?

정답: D
문제4
You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5.
You create an instance of the ServerHost class. You plan to host the WCF service in a Windows service.
You need to link the lifetime of the WCF service to the lifetime of the Windows service.
Which three actions should you perform on the instance of the ServerHost class? (Each correct answer presents part of the solution. Choose three.)
You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5.
You create an instance of the ServerHost class. You plan to host the WCF service in a Windows service.
You need to link the lifetime of the WCF service to the lifetime of the Windows service.
Which three actions should you perform on the instance of the ServerHost class? (Each correct answer presents part of the solution. Choose three.)
정답: A,B,F
문제5
You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application exposes a Windows Communication Foundation (WCF) service. The service will be consumed by a client-side code that runs in the Web pages of an ASP.NET AJAX Web application. You need to ensure that data serialization between the service and the application incurs minimum latency.
Which data format should you use?
You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application exposes a Windows Communication Foundation (WCF) service. The service will be consumed by a client-side code that runs in the Web pages of an ASP.NET AJAX Web application. You need to ensure that data serialization between the service and the application incurs minimum latency.
Which data format should you use?
정답: C
문제6
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?

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?

정답: E
문제7
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You create the following service definition
[ServiceContract(SessionMode=SessionMode.Required)] public interface IMyService {
... }
You need to custom manage the lifetime of the session.
Which service implementation should you use?
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You create the following service definition
[ServiceContract(SessionMode=SessionMode.Required)] public interface IMyService {
... }
You need to custom manage the lifetime of the session.
Which service implementation should you use?
정답: C
문제8
You are creating 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.)

When you browse to the base address of the service, you receive the following message: "Metadata publishing for this service is currently disabled."
You debug the code and discover that the ServiceMetadataBehavior behavior was previously nonexistent. You need to enable metadata publishing.
What should you do?
You are creating 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.)

When you browse to the base address of the service, you receive the following message: "Metadata publishing for this service is currently disabled."
You debug the code and discover that the ServiceMetadataBehavior behavior was previously nonexistent. You need to enable metadata publishing.
What should you do?
정답: D
문제9
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?

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?

정답: B
문제10
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service uses the net.tcp transport. You need to ensure that when the server starts, the service starts and continues to run. What should you do?
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service uses the net.tcp transport. You need to ensure that when the server starts, the service starts and continues to run. What should you do?
정답: D