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 class should the logging component inherit?
You are creating a Web Part that will be deployed as a sandboxed solution.
You need to ensure that the Web Part can write debugging information to the SharePoint trace logs.
Which class should the logging component inherit?
Which component should you use?
You are creating a Windows Embedded Standard run-time image. You need to identify the file system component that meets the following requirements: Set access level to files and folders for each user level. Allow transparent encryption of files and directories for users and programs. Which component should you use?
What should you do?
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. Client applications receive the original fault messages that the service generates. You need to create a custom service behavior to add a fault message handler to all channel dispatchers. What should you do?
Which tool should you use?
You create a custom Web Part.
You need to verify whether the Web Part causes any memory leaks.
Which tool should you use?
What should you do?
You are designing a component for a Windows Forms application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The component will process a long-running business transaction. You plan to provide the status of completion of the transaction to the users. You need to ensure that the application displays a progress bar that reports the percentage of completion of the transaction. You need to achieve this goal without using the polling method.
What should you do?
Which class should you add to the project?
You create custom code to import content to SharePoint sites.
You create a custom site definition by using Microsoft Visual Studio 2010.
You need to ensure that when a new site that uses the site definition is created, the custom code executes after the site is created.
Which class should you add to the project?
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 property should you use?
You create a custom site definition named DCS.
You create a site provision handler for DCS.
DCS contains a file named DCSTemplate.xsd that stores configuration data. You need to read the content of DCSTemplate.xsd in the site provision handler.
Which property should you use?
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 the service can send data in the following format to the client applications.
<Account Id=””>
<Name></Name>
<Balance Currency=””></Balance>
</Account>
Which code segment should you use?