Q1. HOTSPOT - (Topic 1)
You need to design the FranchiseMonitor app to meet the requirements.
What should you do? (To answer, select the appropriate option from each drop-down list in the answer area.)
Answer:
Q2. - (Topic 5)
You plan to create a workflow design by using Microsoft Visio 2013 and then import the design into SharePoint Designer 2013.
You need to ensure that you have branching capability.
Which shape should you use?
A. Assign a Task
B. Stage
C. Loop
D. Step
Answer: B
Explanation: A stage can contain any number of shapes and may include branching.
Q3. DRAG DROP - (Topic 5)
You create a new Enterprise Content Management (ECM) project.
You add a content type to the Visual Studio Project by using the Content Type Designer in
Visual Studio 2012.
You need to identify what the designer-generated XML will look like?
You have the following code:
Which XML elements should you include in Target 1, Target 2, Target 3, Target 4 and Target 5 to complete the code? (To answer, drag the appropriate XML elements to the correct targets in the answer area. Each XML element may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)
Answer:
Q4. - (Topic 1)
You need to implement the custom claims provider for the SharePoint farm.
Which code segments should you implement? (Each correct answer presents part of the solution. Choose all that apply.)
A. Option A
B. Option B
C. Option C
D. Option D
E. Option E
F. Option F
Answer: B,D,F
Explanation: The following are required methods when writing a claims provider.
B: Required for claims picker Claims can be displayed in the people picker control through claims picking. The following methods in the SPClaimProvider class are required methods if you want to implement claim picking in the people picker control.
protected abstract void FillSchema(SPProviderSchema schema);
protected abstract void FillClaimTypes(List<String> claimTypes);
protected abstract void FillClaimValueTypes(List<String> claimValueTypes);
protected abstract void FillEntityTypes(List<String> entityTypes);
D: Required for resolving claims in the type-in control of the claims picker
If you want to be able to resolve claims by using the type-in control of the claims picker,
you must implement the following methods in the SPClaimProvider class.
public abstract bool SupportsResolve
protected abstract void FillResolve(Uri context, String[] entityTypes, String resolveInput,
List<PickerEntity> resolved);
protected abstract void FillResolve(Uri context, String[]
F: Required for searching for claims in the claims picker If you want to be able to search for claims in the claims picker, you must implement the following property and method in the SPClaimProvider class.
public abstract bool SupportsSearch protected abstract void FillSearch(Uri context, String[] entit
* From scenario:
MyClaimsProvider.es
Reference: How to: Create a claims provider in SharePoint 2013
Q5. - (Topic 1)
A franchisee deletes several sites from the franchise's site collection. The franchisee site collection administrator must recover the sites.
You need to instruct the franchisee site collection administrator on how to access the page to recover the sites.
What should the site collection administrator do to get to the appropriate page?
A. Select General Settings for the Web Application in Central Administration and change the second stage Recycle Bin settings to 100 percent.
B. Select General Settings for the Web Application in Central Administration and change the first stage Recycle Bin settings to 0 days.
C. Select the Recycle Bin on the Site Settings page. Choose the appropriate sites and select Restore Selection.
D. Select the Recycle Bin in the Quick Launch page. Choose the appropriate sites and select Restore Selection.
Answer: D
Explanation: To restore a deleted site or workspace directly from the Site Collection Recycle Bin:
1. Click Recycle Bin on the Quick Launch.
2. On the Site Name Recycle Bin page, above the list of deleted objects, click the Site Collection Recycle Binlink.
3. On the Site Collection Administration Recycle Bin page, under Select a View, make sure that Deleted from end user Recycle Bin is selected.
4. Locate the site or workspace that you want to restore.
5. Select the check box next to the site or workspace that you want to restore, and then click Restore Selection.
Incorrect:
Not A, not B: The sites have been deleted. They need to be restored. A and B are wrong
because modifying the Recycle Bin settings after the sites are deleted will have no effect
on the deleted sites.
Reference: Restore a deleted object from a SharePoint Recycle Bin
Q6. DRAG DROP - (Topic 5)
You develop a SharePoint app to access data contained in a hosted SharePoint site.
You need to authorize the app to access the list items in a custom list on the host website.
You have the following code:
Which code segments should you include in Target 1, Target 2, Target 3, Target 4, Target 5 and Target 6 to complete the code? (To answer, drag the appropriate code segments to the correct location or locations in the answer area. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content)
Answer:
Q7. - (Topic 5)
You plan to create a SharePoint Business Process Automation (BPA) project.
You need to process items for approval with the least amount of developer effort.
Which tool should you use?
A. Remote Event Receiver
B. Out-of-the-box workflow
C. SharePoint Designer workflow
D. Work Item Timer Job
Answer: B
Explanation: Workflows in SharePoint 2013 allow you to model and automate business processes. These business processes can be as simple as a document approval process with a single approver (shown in example below), as complex as customer-facing product catalog using web service calls and database support, or as formidable as virtually any structured business process, full of conditions, loops, user inputs, tasks, and custom actions.
Example: Simple SharePoint workflow
Reference: Get started with workflows in SharePoint 2013
Q8. HOTSPOT - (Topic 5)
A company uses SharePoint for document sharing and collaboration. Users create content types for different types of documents that are created daily. All document content types have ProjectID, Type, and AuditStatus columns. ProductID is not a required field. The Auditing department requires that every document have a ProjectID within two weeks of the creation date.
If a document does not have a ProjectID, the AuditStatus column must show a message for users to specify the ProjectID. For performance reasons, fewer than 50 documents at a time should be processed.
You need to write a work-item timer job to meet the requirement.
How should you complete the relevant code? (To answer, select the appropriate option from the drop-down list in the answer area.)
Answer:
Q9. - (Topic 3)
You need to automate the backup of a site collection.
What should you do? (Each correct answer presents part of the solution. Choose all that apply.)
A. Back up to a network folder.
B. Set the LockStatus of the site collection to Adding content prevented
C. Back up to a local folder and then move the backup to a network folder.
D. Use Central Administration to perform the backup.
E. Use Windows PowerShell to perform the backup.
Answer: C,E
Explanation: C: For better performance, Microsoft recommends that you back up to the
local computer and then move the backup files to a network folder.
E (not D):
Scenario: Automation: Windows PowerShell must be used to automate all operations
wherever possible.
Scenario: Backup and Recovery
* In the event of hardware failure, the SharePoint environment must be restored to the most recent date.
* The backup process must not degrade system performance.
* Automation: Windows PowerShell must be used to automate all operations wherever possible.
Reference: Back up site collections in SharePoint 2013
Q10. - (Topic 5)
Adventure Works uses a SharePoint publishing site to host their public-facing website at http://www.adventureworks.com. The website gives external users the ability to register and sign in to the site to buy Adventure Works products.
You notice that publicly registered users see the SharePoint ribbon.
You need to ensure that the SharePoint ribbon is available only to content authors and administrators.
What should you do?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: D
Explanation: If you designed a custom master page for your SharePoint 2010 and the
ribbon is in your way, SharePoint has a built-in control that lets you hide it from anonymous
users in few easy steps. Open and check-out your master page, find where your ribbon
control starts or look for <WebPartPages:SPWebPartManager id=”m” runat=”Server”/>.
Place this control below <Sharepoint:SPSecurityTrimmedControl runat=”server”
Permissions=”AddAndCustomizePages”>. Find where your ribbon control ends or look for
<div id=s4-workspace> and place the closing control above it
</SharePoint:SPSecurityTrimmedControl>. Save, check-in the master page and publish it
to see the changes. From now on, only logged in users with the right permissions will be
able to see the ribbon on the top.
Incorrect:
Not B: Permission should be set to AddAndCustomizePages not ManageSubWeb.
Reference: SharePoint, Hide the Ribbon from Anonymous Users
http://www.topsharepoint.com/hide-the-ribbon-from-anonymous-users
Q11. - (Topic 5)
You plan to create a workflow design by using Microsoft Visio 2013 and then import the design into SharePoint Designer 2013.
You need to ensure that you have repetition capability.
Which shape should you use?
A. Stage
B. Assign a Task
C. Step
D. Loop
Answer: D
Explanation: Loop shapes Loops are a series of connected shapes that will execute as a loop, returning from the last shape in the series to the first, until a condition is satisfied.
Note: Workflows in SharePoint Designer 2013 now include the notions of stages, loops, and steps. The SharePoint 2013 Workflow template that is included in Visio 2013 also uses stages, loops, and steps as logical building blocks for creating a workflow
Reference: Workflow development in SharePoint Designer 2013 and Visio 2013
Q12. HOTSPOT - (Topic 4)
You create a document reporting Web Part for Marketing auditors.
You need to configure throttling for the Web Part. You insert the following code in line MA08
spQuery.QuerythrottleMode = Target 1
Which code segment should you include in Target1 to complete the code? (To answer, select the appropriate option from the drop-down list in the answer area.)
Answer:
Q13. - (Topic 5)
A company uses SharePoint for internal collaboration. SharePoint is deployed on a server farm with a single front-end server, a single application server, and a dedicated database server.
You review existing Web Parts that read from and write to SharePoint lists. You find the following code in one of the utility classes and notice memory leaks in the method.
You need to ensure that there are no memory leaks in the method.
What should you do?
A. Add a finally statement and include site.Dispose ().
B. Add site.Dispose() to the catch statement.
C. Add a finally statement and include siteCollection.Dispose ();
D. Add siteCollection.Dispose() to the catch statement.
Answer: C
Explanation: Need to manually dispose of the siteCollection instance. This can be done through a finally statement.
Note:
* Try and finally blocks or a using statement would be required to avoid potential leaks
when you create a disposable object within a foreach block, as shown in the following code
example.
SPWebApplication webApp = siteCollectionOuter.WebApplication;
SPSiteCollection siteCollections = webApp.Sites;
SPSite siteCollectionInner = null;
foreach (siteCollectionInner in siteCollections)
{
try //Should be first statement after foreach.
{
Console.WriteLine(siteCollectionInner.Url);
//Exception occurs here.
}
finally
{
if(siteCollectionInner != null)
siteCollectionInner.Dispose();
}
}
* Why Dispose? Several of the Windows SharePoint Services objects, primarily the SPSite class and SPWeb class objects, are created as managed objects. However, these objects use unmanaged code and memory to perform the majority of their work. The managed part of the object is much smaller than the unmanaged part. Because the smaller managed part does not put memory pressure on the garbage collector, the garbage collector does not release the object from memory in a timely manner. The object's use of a large amount of unmanaged memory can cause some of the unusual behaviors described earlier. Calling applications that work with IDisposable objects in Windows SharePoint Services must dispose of the objects when the applications finish using them. You should not rely on the garbage collector to release them from memory automatically.
Reference: Best Practices: Using Disposable Windows SharePoint Services Objects
Q14. DRAG DROP - (Topic 5)
You develop a reusable workflow on a development site by using SharePoint Designer. The workflow must be made available to a test site on a different SharePoint environment. You need to deploy and start the workflow on the test site by using Microsoft Visual Studio
2012.
Which three actions should you perform in sequence? (To answer, move the appropriate
actions from the list of actions to the answer area and arrange them in the correct order.)
Answer:
Q15. - (Topic 2)
You need to configure navigation for the site.
What should you do? (Each correct answer presents part of the solution. Choose all that apply.)
A. Create simple links or headers for new pages.
B. Create friendly URLs for new pages automatically.
C. Add unique identifiers to new pages.
D. Create term-driven pages with friendly URLs.
E. Add new pages to navigation automatically.
Answer: A,B,D
Explanation:
D: Scenario: Navigational links across the top should be driven by the term store and use URLs that will improve search engine ranking.
A: Simple links:
The HR node is configured with a link to a page the user will be taken to when clicking on the menu item:
BD: Enable Managed Navigation
This page allows you to select managed navigation for your global and current navigation.
Under Site Settings / Look and Feel click on Navigation.
Other settings on this page allow you to define the term set that will be used for navigation terms and if new pages created should be added to the term set automatically. You can also specify if friendly URL's should be created automatically.
Reference: Term based navigation in SharePoint 2013;SharePoint 2013 – Friendly URLs and Managed Navigation