PrepAway - Latest Free Exam Questions & Answers

Category: 70-503

Exam 70-503: TS: Microsoft .NET Framework 3.5 – Windows Communication Foundation Application Development

Which two secure communication protocols should you use?

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.)

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?

Which code segment should you use?

You are creating an endpoint for a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You create the endpoint by using a custom binding. You write the following code segment.

BasicHttpBinding binding=new BasicHttpBinding();
binding.Security.Message.ClientCredentialType=
BasicHttpMessageCredentialType.Certificate;
binding.Security.Mode=BasicHttpSecurityMode.Message; CustomBinding cb=new CustomBinding(binding);
BindingElementCollection bec=cb.CreateBindingElements();

You need to prevent the custom binding from making a persistent connection to the service endpoint. Which code segment should you use?

Which configuration settings should you use?

You are creating a distributed client application by using Microsoft .NET Framework 3.5. You use Windows Communication Foundation (WCF) to create the application. You specify the following configuration settings for the service application.

<serviceCredentials>
<userNameAuthentication
userNamePasswordValidationMode="MembershipProvider" membershipProviderName="SqlMembershipProvider"/>
</serviceCredentials>

You need to authenticate the client application by using the Microsoft ASP.NET membership provider. Which configuration settings should you use?

Which code fragment should you add?

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You write the following code segment.

namespace MyServices
{
[ServiceContract()]
interface IManageOrders
{

}
}
The service metadata must be exposed at the relative address named meta.

You need to add an endpoint element to the app.config file of the service host. Which code fragment should you add?

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 create a service contract. (Line numbers are included for reference only.)

01
02 public interface IMyContract
03 {
04 [OperationContract]
05 void MyMethod();
06 }

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

Which code segment should you insert at line 01?

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

01
02 public interface IMyService
03 {
04 [OperationContract]
05 void ProcessOrder(int ordered);
06 }
07 public class serviceImpl : MyService
08 {
09 [OperationBehavior(TransactionAutoComplete=false, TransactionScopeRequired=true)]
10 public void ProcessOrder(int custId)
11 {
12 //Implementation
13 }
14 }

You need to set the ServiceContract attribute for the transaction behavior of the service.
Which code segment should you insert at line 01?

Which code segment should you use to replace the existing operation contract?

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 IMyService
{
[OperationContract(IsOneWay=true, ProtectionLevel=ProtectionLevel.None)]
[TransactionFlow(TransactionFlowOption.Allowed)]
void DoSomething();
}

You need to ensure that the DoSomething operation can participate in transactions.
Which code segment should you use to replace the existing operation contract?


Page 4 of 11« First...23456...10...Last »