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 create a client application by using Microsoft .NET Framework 3.5. The client application uses a Windows Communication Foundation (WCF) service. You plan to implement inspection handling on the client application and the WCF service. You need to add error handling to the WCF service. What should you do?
正解:A
解答を投票する
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service contains the following binding configuration in the configuration file. (Line numbers are included for reference only.)
01 <wsHttpBinding>
02 <binding name="ssl">
04 </binding>
05 </wsHttpBinding>
You need to ensure that the following requirements are met:
Which configuration setting should you insert at line 03?

01 <wsHttpBinding>
02 <binding name="ssl">
04 </binding>
05 </wsHttpBinding>
You need to ensure that the following requirements are met:
Which configuration setting should you insert at line 03?

正解:C
解答を投票する
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 (WCF) client application by using Microsoft .NET Framework 3.5. You write the following binding configuration. (Line numbers are included for reference only.)

You need to ensure that the client application can receive string values that contain a maximum of 5,000 characters.
Which configuration settings should you insert at line 04?

You need to ensure that the client application can receive string values that contain a maximum of 5,000 characters.
Which configuration settings should you insert at line 04?
正解:B
解答を投票する
You are creating a Windows Communication Foundation client application by using Microsoft .NET Framework 3.5.
The client application consumes the Web Services Enhancements (WSE) 3.0 Web service.
The Web service uses standard WSE 3.0 to transfer binary data to the client application.
The client application uses the following binding configuration.
(Line numbers are included for reference only.)

You need to ensure that the client application receives binary data from the WSE 3.0 Web service.
Which code fragment should you insert at line 03?

The client application consumes the Web Services Enhancements (WSE) 3.0 Web service.
The Web service uses standard WSE 3.0 to transfer binary data to the client application.
The client application uses the following binding configuration.
(Line numbers are included for reference only.)

You need to ensure that the client application receives binary data from the WSE 3.0 Web service.
Which code fragment should you insert at line 03?

正解:D
解答を投票する
You are creating a distributed application by using Microsoft .NET Framework 3.5. You use Windows Communication Foundation (WCF) to create the application.
The client application is used in Company A, and the service application is used in Company B.
Company A and company B have security token services named STS_A and
STS_B respectively.
You need to authenticate the client application by using federated security.
Which combination of bindings should you use?

The client application is used in Company A, and the service application is used in Company B.
Company A and company B have security token services named STS_A and
STS_B respectively.
You need to authenticate the client application by using federated security.
Which combination of bindings should you use?

正解:C
解答を投票する
You have created a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
The existing service interface is named IMyService, and contains the following code segment.

You create a new service named IMyServiceVI that contains an operation named DoSomethingElse.
You need to ensure that existing client applications are still able to access the IMyService. DoSomething method without modifying client code. Which code segment should you use?

The existing service interface is named IMyService, and contains the following code segment.

You create a new service named IMyServiceVI that contains an operation named DoSomethingElse.
You need to ensure that existing client applications are still able to access the IMyService. DoSomething method without modifying client code. Which code segment should you use?

正解:B
解答を投票する
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 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?

正解:D
解答を投票する
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service will contain an enumeration named OrderState.
The OrderState enumeration will contain the following four values:
The client application must be able to set the state of an Order entity to only the following
two values:
You need to create the data contract for OrderState. Which code segment should you use?

The OrderState enumeration will contain the following four values:
The client application must be able to set the state of an Order entity to only the following
two values:
You need to create the data contract for OrderState. Which code segment should you use?

正解:D
解答を投票する
You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. The WCF service must authenticate the client applications by validating credit card numbers and expiry dates.
You write the following code segment. (Line numbers are included for reference only.)

You need to implement custom authentication for the WCF service. Which code segment should you insert at line 10?

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

You need to implement custom authentication for the WCF service. Which code segment should you insert at line 10?

正解:D
解答を投票する
You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You write the following code segment.

The service uses a transactional binding. The TransactionFlow property for the binding is set to true. You need to ensure that the MyMethod method meets the following requirements:
Which code segment should you insert at line 05?

The service uses a transactional binding. The TransactionFlow property for the binding is set to true. You need to ensure that the MyMethod method meets the following requirements:
Which code segment should you insert at line 05?
正解:C
解答を投票する
Your company has a set of e-commerce services that were created by using Microsoft .NET Framework 3.5. The Windows Communication Foundation model was used to create the services.
The services include a catalog and a shopping cart that are deployed to the same physical server. The catalog is a stateless, single-instance service. The shopping cart is a reentrant, per-session service.
The catalog service contains the following code fragment.

The shopping cart service contains the following code fragment.

During peak hours, the number of simultaneous catalog requests increase. This prevents customers from updating their shopping carts. You need to ensure that the customers can update their shopping carts even during peak catalog request traffic.
Which set of code fragments should you use to replace the existing code fragments?

The services include a catalog and a shopping cart that are deployed to the same physical server. The catalog is a stateless, single-instance service. The shopping cart is a reentrant, per-session service.
The catalog service contains the following code fragment.

The shopping cart service contains the following code fragment.

During peak hours, the number of simultaneous catalog requests increase. This prevents customers from updating their shopping carts. You need to ensure that the customers can update their shopping carts even during peak catalog request traffic.
Which set of code fragments should you use to replace the existing code fragments?

正解:B
解答を投票する
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You create the following service contract.

You need to ensure that the DoSomething operation is executed by a single thread at a time.
What are two possible service implementations you should use to achieve this goal? (Each correct answer presents a complete solution. Choose two.)


You need to ensure that the DoSomething operation is executed by a single thread at a time.
What are two possible service implementations you should use to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

正解:B、C
解答を投票する