You have a custom Web Part that is deployed as a sandboxed solution.
You need to ensure that the Web Part can access the local file system on a SharePoint server.
You must minimize the amount of privileges assigned to the Web Part.
What should you do?
A. Deploy the Web Part to the Global Assembly Cache (GAC).You need to create a custom content type and specify the content type ID. What should you do?
A. Call the Lists Web service.You have a Microsoft Office SharePoint Server 2007 site.
You upgrade the site to SharePoint Server 2010.
You need to create a Feature that prevents site collection administrators from upgrading the user interface of the site to SharePoint Server 2010.
Which property should you use?
A. UIVersionConfigurationEnabledYou have several SharePoint sites.
You plan to load a custom script in all pages of the sites.
You need to ensure that you can activate or deactivate the script at the site level.
What should you do?
A. Create a site definition and modify the CustomJSUrl attribute in the Onet.xml file.You have a Microsoft Office SharePoint Server 2007 site.
You upgrade the site to SharePoint Server 2010.
You need to create a Feature that prevents site collection administrators from upgrading the user interface of the site to SharePoint Server 2010.
Which property should you use?
A. UIVersionConfigurationEnabledYou plan to activate the Developer Dashboard.
You create a command line application that contains the following code segment. (Line numbers are included for reference only.)
01 SPUebService cs = SPHebService.ContentServi.ee ;
02 cs.DeveloperDashfooardSettings.DisplayLevel = SPDeveloperDashboardLevel.On ; You execute the application and discover that the Developer Dashboard fails to appear.
You need to ensure that the application activates the Developer Dashboard.
What should you do?
A. Add the following line of code at line 03: cs.Update();You create a Web Part that queries a list. The Web Part contains the following code segment. (Line numbers are included for reference only.) 01Protected Overloads Overrides Sub Render(ByVal writer As HtmlTextWriter) 02 Dim spInToken As SPUserToken = GetTheContext(SPContext.Current.Site) 03 Using aSite As New SPSite(curSiteCtx.ID, spInToken) 04 ... 05 End Using 06 End Sub 07Private Function GetTheContext(ByVal nWeb As SPSite) As SPUserToken 08 nWeb.CatchAccessDeniedException = False 09 Dim spToken As SPUserToken = Nothing 10 Try 11 spToken = nWeb.SystemAccount.UserToken 12 Catch generatedExceptionName As UnauthorizedAccessException 14 End Try 15 Return spToken 16End Function
You need to ensure that users without permissions to the list can view the contents of the list from the Web Part. Which code segment should you add at line 13?
A. SPSecurity.RunWithElevatedPrivileges(EvelvatedSub) Private Sub ElevatedSub() Using eSite As New SPSite(nWeb.ID) spToken = nWeb.SystemAccount.UserToken End Using End SubYou plan to create a Web Part for a SharePoint site. You need to ensure that the Web Part can send data to other Web Parts in the site. What should you do?
A. Implement the IAlertNotifyHandler interface.You have a Web application named WebApp1.
You have a Feature receiver named FeatureReceiver1. FeatureReceiver1 stores a connection string in the web.config file of WebApp1.
You need to ensure that when FeatureReceiver1 makes configuration changes to web.config, the changes are automatically replicated to all Web servers in the farm.
Which class should you use in FeatureReceiver1?
A. SPPersistedObjectYou are creating a custom workflow action to be used in Microsoft SharePoint Designer reusable workflows. The action programmatically creates a SharePoint site named Site1 at a specific URL.
The workflow actions schema file contains the following code segment.
< Workflowlnfo>
ClassName =" SPDActivityDemo.Createsite " Assembly=" SPDActivityDemo , Version=l.0.0.0, Culture=neutral, PublicKeyToken= Ia4a7a2c3215a71b " AppliesTo ="all" Category="Test">
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 70-573 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.