What should you do?
You create a user control named MySearch.ascx.
You plan to change the native search control in SharePoint to MySearch.ascx. You need to provide the site administrator with the ability to change the out-ofthe-box search control to MySearch.ascx.
What should you do?
Which code segment should you use?
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You need to ensure that data sent in a SOAP header is in the following XML format.
<Data>
<string>String 1</string>
<string>String 2</string>
<string>String 3</string>
</Data>
Which code segment should you use?
What should you configure in the web.config file?
You have a Web Part that causes an error.
You need to ensure that you can view the trace history in the Trace.axd file.
What should you configure in the web.config file?
Which operation contract should you use?
You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You create the following service contract.
[ServiceContract]
public interface IMath
{
[OperationContract]
int Add(int num1, int num2);
}
You need to add an operation contract to perform the Add operation asynchronously. Which operation contract should you use?
Which two actions should you perform?
You create and deploy a custom Web Part.
You add the Web Part to a page and receive a run-time error. You need to display the detailed information of the error on the page.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
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 process should you attach the debugger?
You create a SharePoint farm solution that contains a Web Part.
You need to debug the Web Part by using Microsoft Visual Studio 2010.
To which process should you attach the debugger?
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?
What should you use?
You create a custom Web Part.
You need to create a class to log Web Part errors to the Unified Logging Service (ULS) logs.
What should you use?
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?