PrepAway - Latest Free Exam Questions & Answers

Tag: 70-569

Exam 70-569: UPGRADE: Transition your MCPD Enterprise Application Developer Skills to MCPD Enterprise Application Developer 3.5, Part 2

Which code segment should you use?

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.

[ServiceContract(Name=”SvcOrder”,
Namespace=”http://contoso.com/services”)]
public interface IMyService
{
[OperationContract]
void DoSomething();
}

You create a new service named IMyServiceV1 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?

Which code segment should you use?

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service will be hosted on a Web server. You add the following code fragment to the .svc file.
<% @ServiceHost Factory=”ExamServiceFactory” Service=”ExamService” %>
You need to create the instances of the services by using the custom ExamServiceFactory class.
Which code segment should you use?

Which code segment should you insert at line 08?

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

01 [ServiceContract(Namespace=”http://uri.contoso.com”)] 02 public interface IMyService
03 {
04 [OperationContract]
05 string ProcessDetails(string s);

06 [OperationContract(Action=”UpdateStatus”)]
07 void UpdateStatus();
09 }

If the existing operation contract is unable to process a request made to the service, a generic operation contract must attempt to process the request. You need to create the generic operation contract. Which code segment should you insert at line 08?

What should you do?

You are creating a distributed application by using Microsoft .NET Framework 3.5. You use Windows Communication Foundation to create the application. You plan to perform the following tasks:

Authenticate the client applications by using Microsoft ASP.NET membership provider. Authorize the client applications by using Microsoft ASP.NET role provider. You write the following code segment.

[ServiceContract]
public interface IService
{
[OperationContract]
void Remove(int id);
}
public class Service : IService
{
public void Remove(int id)
{}
}

You need to ensure that only those client applications that provide credentials belonging to the AdminGroup role can access the Remove method. What should you do?

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 insert at line 03?

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You write the following code fragment for the configuration setting. (Line numbers are included for reference only.)

01 <wsHttpBinding>
02 <binding name=”simple”>
04 </binding>
05 </wsHttpBinding>

You need to ensure that the service uses transport security and allows access to anonymous client applications. Which code fragment should you insert at line 03?

Which configuration setting 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 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:

The service must use transport-level security (SSL via HTTPS). The service must use message-level security to authenticate client applications by using user name and password. Which configuration setting should you insert at line 03?

Which code fragment should you insert at line 05?

You are creating a client application by using Microsoft .NET Framework 3.5. You use Windows Communication Foundation (WCF) to create the application. The client application uses a Personal Information Card to provide authentication information to the WCF server. You write the following code fragment. (Line numbers are included for reference only.)

01 <wsFederationHttpBinding>
02 <binding name=”requireCardSpace”>
03 <security mode=”Message”>
04 <message >
06 </message>
07 </security>
08 </binding>
09 </wsFederationHttpBinding>

You need to ensure that one of the claims in the Personal Information Card contains an e-mail address. Which code fragment should you insert at line 05?


Page 1 of 212