PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

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?

What should you do?

You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. The WCF service will validate certificates to authorize client applications. You write the following code segment.

class Store: IStore
{
public void RemoveOrder(int ordered)
{}
}

You need to ensure that only those client applications that meet the following criteria can access the RemoveOrder method:

“AdminUser” is the subject in the client certificate. “1bf47e90f00acf4c0089cda65e0aadcf1cedd592” is the thumbprint in the client certificate.

What should you do?

Which code segment should you insert at line 04?

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

01 public void PutMessage(Message msg)
02 {
03 string value=null;
05 }

You need to retrieve the content from the received message body and store it in the variable named value. Which code segment should you insert at line 04?