70-503試験無料問題集「Microsoft TS: Microsoft .NET Framework 3.5 C Windows Communication Foundation 認定」

You create a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. The WCF service accepts service requests from different partner applications. One of the partner applications occasionally receives faults. You need to identify why the service is generating faults. You must accomplish this goal without interrupting the service. What should you do?

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.
Which code segment should you use?

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.)
01 public class QueryAnalyzerService :
02 IQueryAnalyzerService, IDisposable {
04 public void Open() {
05}
06 public void ExecuteSql(string sql) {
07...
08!
09 public void Close() {
10...
11}
12 public void Disposed
13...
14}
15...
16}
You need to ensure that each time a client application calls the Open0 method, a new service instance is created. Which code segment should you insert at line 03?

You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. You configure a binding to enable streaming.
You need to ensure that the client application is able to stream large XML files to the WCF service.
Which operation contract should you create?

You create a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. Client applications that run on different platforms access the WCF service.
These applications transmit confidential data to the WCF service. You write the following binding configuration.
....
<binding name="TransportSecurity" >
<security mode="Transport" />
</binding>
...
You need to configure the service for optimum interoperability and optimum security.
Which code fragment should you use?

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You write the following code segment to create a service contract. (Line numbers are included for reference only.)

You need to ensure that the client applications always use a binding that supports sessions.
Which code segment should you insert at line 01?

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You write the following code segment to implement an operation contract. (Line numbers are included for reference only.)

Only the contents of the File.xml file are sent to the client application.
You need to ensure that the SOAP envelope generation is always disabled for messages that are sent to the client application.
Which line of code should you insert at line 04?

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 are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You create the following service contract.

You need to create an endpoint for the service contract in the application configuration file.
Which endpoint should you use?

You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. You create a class named Customer for the WCF service. The Customer class has properties named Id, Name, and BalanceDue.
You plan to convert the Customer class into a data contract.
You need to ensure that only the Id property and the Name property are passed to the client applications.
Which code segment should you use?

You are creating a Windows Communication Foundation client application by using Microsoft .NET Framework 3.5.
You need to inspect the parameters on the client application.
Which three actions should you perform? (Each correct answer presents part of the solution. Choose three.)

正解:A,D,F 解答を投票する
You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. You configure a binding to enable streaming. You need to ensure that the client application is able to stream large XML files to the WCF service.
Which operation contract should you create?

You create a stateless, thread-safe service by using Microsoft .NET Framework 3.5. You use the Windows Communication Foundation model to create the service. Load testing reveals that the service does not scale above 1,000 concurrent users.
You discover that each call to the service instantiates a new service instance. You also discover that these service instances are expensive to create. You need to ensure that 5,000 concurrent users can access the service.
Which code segment should you use?

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 are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service is hosted in a managed application.
You need to perform the following tasks:
Publish the service on the following address: net.tcp://localhost:8080/ExamService
Publish the metadata on the following address:
http://localhost:8081/ExamService/metadata?wsdl
Which code fragment should you use?

You are creating a distributed application by using Microsoft .NET Framework 3.5.
The application uses Windows Communication Foundation (WCF). The distributed application provides point-to-point security.
You need to ensure that the distributed application provides end-to-end security instead of point-to-point security.
Which binding mode 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) Web service. The Web service is consumed by third-party applications. You need to ensure that the WCF service provides interoperable and secure end-to-end communications. What should you do?

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 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?

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You set the logKnownPii attribute to true for the only trace source in the app.config file. You discover that the personal identifiable information (PII) is not logged.
You need to ensure that the PII is logged.
What should you do?