Microsoft 70-573 Online Practice
Questions and Exam Preparation
70-573 Exam Details
Exam Code
:70-573
Exam Name
:TS: Office SharePoint Server, Application Development (available in 2010)
Certification
:Microsoft Certifications
Vendor
:Microsoft
Total Questions
:280 Q&As
Last Updated
:Feb 06, 2022
Microsoft 70-573 Online Questions &
Answers
Question 231:
You 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.
You discover that line 05 causes an error. You need to resolve the error.
What should you do?
A. Run the code segment at line 05 inside a RunWithElevatedPrivileges delegate. B. Add the following code at line 04. If web.CurrentUser.IsSiteAuditor = False Then System.Diagnostics.EventLog.WriteEntry("WebPart Name", "Exception Information: " and ex.Message, EventLogEntryType.[Error]) End If C. Add the following code at line 04 If web.CurrentUser.IsSiteAdmin = False Then System.Diagnostics.EventLog.WriteEntry("WebPart Name", "Exception Information: " and ex.Message, EventLogEntryType.[Error]) End If D. Change line 05 to the following code segment. System.Diagnostics.EventLog.WriteEntry("WebPart Name", "Exception Information", EventLogEntryType.Error)
A. Run the code segment at line 05 inside a RunWithElevatedPrivileges delegate.
Question 233:
You create two custom lists named Offices and Rooms.
Rooms has the following columns:
Offices has the following columns:
You need to perform a Representational State Transfer (REST) query that returns a list of all the offices that have rooms with a capacity of 10. The query results must include the room titles and the equipment in each room.
Which URL should you choose?
A. /_vti_bin/ListData.svc/Offices $expand=Roomsand$filter=Rooms/Capacity eq 10 B. /_vti_bin/ListData.svc/Offices and$filter=Rooms/Capacity eq 10 C. /_vti_bin/ListData.svc/Rooms $expand=Officesand$filter=Rooms/Capacity eq 10 D. /_vti_bin/ListData.svc/Rooms and$filter=Offices/Capacity eq 10
A. /_vti_bin/ListData.svc/Offices $expand=Roomsand$filter=Rooms/Capacity eq 10
Explanation: Section: (none)
MNEMONIC RULE: "Offices - Rooms - Rooms/Capacity" You can use the Expand method to navigate from one entity to a related entity. You can append query strings to the URLs in order to specify filter criteria or query logic. Using the REST Interface http://msdn.microsoft.com/en-us/library/ff798339.aspx
Question 234:
You use a custom site definition to create SharePoint sites.
You need to add a Web Part to the home page of the site definition.
Which file should you modify?
A. Onet.xml B. default.master C. web.conflg D. Sp.xml
A. Onet.xml
Explanation: MNEMONIC RULE: "third-party site definition = Onet.xml" You can perform the following kinds of tasks in a custom Onet.xml file that is used for either a custom site definition or a custom web template:
Specify an alternative cascading style sheet (CSS) file, JavaScript file, or ASPX header file for a site definition.
Modify navigation areas for the home page and list pages. Add a new list definition as an option in the UI. Define one configuration for the site definition or web template, specifying the lists, modules, files, and Web Parts that are included
when the configuration is instantiated. Specify Features to be included automatically with websites that are created from the site definition or web template.
You are developing a custom Feature by using Microsoft Visual Studio 2010. You need to ensure that when you deploy the Feature, a file named Form1.xsn is deployed to the Feature folder. You must achieve this goal by using the minimum amount of development effort. What should you do?
A. Add a new module to the Visual Studio project. B. Add a Feature receiver to the Visual Studio project. C. Configure the Properties element in the Feature definition file. D. Configure the ActivationDependencies element in the Feature definition file.
A. Add a new module to the Visual Studio project.
MNEMONIC RULE: "deploy file = module" A module is a collection of file instances, which are instances of files that are provisioned in a site. To provisiona file into Microsoft SharePoint Foundation Web sites, you must use the Module element within a Feature orsite definition. The Module element allows you to add one or more files to a SharePoint Foundation Web site ordocument library. Module http://msdn.microsoft.com/en-us/library/ms462994.aspx How to: Provision a File http://msdn.microsoft.com/en-us/library/ms441170.aspx
Question 236:
You create a Web Part that updates a list.
You need to ensure that users can use the Web Part to update the list, regardless of the users' permissions to the list.
What should you use in the Web Part?
A. the SPSecurity.AuthenticationMode property B. the SPSecurity.CatchAccessDeniedException property C. the SPSecurity.RunWithElevatedPrivileges method D. the SPSecurity.SetApplicationCredentialKey method
C. the SPSecurity.RunWithElevatedPrivileges method
MNEMONIC RULE: "regardless of permissions = RunWithElevatedPrivileges" SPSecurity.RunWithElevatedPrivileges Method http://msdn.microsoft.com/enus/library/microsoft.sharepoint.spsecurity.runwithelevatedprivileges.aspx
Question 237:
You create a Business Connectivity Services (BCS) object model in Microsoft Visual Studio 2010. The model connects to an XML file.
You create an external list that displays the BCS entity.
You need to ensure that users can delete items from the external list.
What should you do?
A. Create a custom method and specify the method as a Deleter method instance. B. Call the SPListItem.Delete() method. C. Call the SPList.Delete() method. D. Create a custom method and specify the method as a Disassociator method instance.
A. Create a custom method and specify the method as a Deleter method instance.
MNEMONIC RULE: "Deleter method" XML Snippet: Modeling a Deleter Method http://msdn.microsoft.com/en-us/library/ff464327.aspx Code Snippet: Execute the Deleter Method Instance of an External Content Type http://msdn.microsoft.com/en-us/library/ff464351.aspx
Question 238:
You need to delete the previous versions of all documents in a document library. The deleted versions of the documents must be retained in the SharePoint Recycle Bin. What should you do?
A. For the document library, call the Recycle method. B. For the document library, call the Delete method. C. For each document, call the DeleteAll method of the Versions property. D. For each document, call the RecycleAll method of the Versions property.
D. For each document, call the RecycleAll method of the Versions property.
MNEMONIC RULE: "all previous versions to Recycle Bin = RecycleAll of the Versions" Recycles the version collection except for the current version. SPListItemVersionCollection.RecycleAll Method http://msdn.microsoft.com/enus/library/microsoft.sharepoint.splistitemversioncollection.recycleall.aspx
Question 239:
You have a timer job that has the following constructors. (Line numbers are included for reference only.)
01 public TimerJob1 () : base() { }
02 public TimerJob1(SPWebApplication wApp)
You need to ensure that the timer job runs on the first available timer server only. Which base class constructor should you use at line 02?
A. public TimerJob1(SPWebApplication wApp) : base (null, wApp, null, SPJobLockType.ContentDatabase) { } B. public TimerJob1(SPWebApplication wApp): base (null, wApp, null, SPJobLockType.Job){ } C. public TimerJob1(SPWebApplication wApp):base (null, wApp, null, SPJobLockType.None) { } D. public TimerJob1(SPWebApplication wApp):base ("TimerJob1", wApp, null, SPJobLockType.None) { }
B. public TimerJob1(SPWebApplication wApp): base (null, wApp, null, SPJobLockType.Job){ }
MNEMONIC RULE: "SPJobLockType.Job" Job member locks the timer job so that it runs only on one machine in the farm. SPJobLockType Enumeration http://msdn.microsoft.com/enus/library/microsoft.sharepoint.administration.spjoblocktype.aspx
Question 240:
You need to create a custom content type and specify the content type ID. What should you do?
A. Create a new module. B. Create a custom Feature. C. Call the Lists Web service. D. Call the Webs Web service.
B. Create a custom Feature.
MNEMONIC RULE: "custom Feature for custom content type" Create Custom Content Types in SharePoint 2010 http://msdn.microsoft.com/en-us/library/ff630942.aspx
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.