Q1. HOTSPOT - (Topic 4)
You need to scope the feature containing the Litware Team Site template.
In the Feature Designer tool in Visual Studio 2012, which scope option should you select? (To answer, select the appropriate scope from the drop-down list in the answer area.)
Answer:
Q2. - (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
Q3. DRAG DROP - (Topic 5)
A company develops a workflow by using SharePoint Workflow Manager. The Auditing department has a SQL Server database that contains a list of all available software. The list contains the names of the users who have permission to use the software. The data is available through a Windows Communication Foundation (WCF) service that uses OData and is deployed internally.
The IT department plans to implement a help desk solution on the IT site collection that involves the creation of workflows.
A user must request approval to use software that is not available internally from three different managers. The workflow should be approved if two of the three managers approve the request.
The workflow has an Evaluation and an Approval stage.
You need to develop the workflow by using SharePoint Designer.
Which five 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:
Q4. DRAG DROP - (Topic 5)
You have a large list that contains more than 5,000 list items.
You need to iterate through the list by using the Content Iterator to avoid getting an
exception.
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:
Q5. HOTSPOT - (Topic 1)
You need to add markup at line AM10 to set the minimum app permissions for the FranchiseMonitor app.
Which code segments should you include in Target 1 and Target 2 to complete the code? (To answer, select the appropriate options from each drop-down list in the answer area.)
Answer:
Q6. - (Topic 4)
You create a document reporting Web Part for the Marketing team auditors. You need to configure throttling for the Web Part.
Which code segment should you insert at line MA08?
A. spQuery.QueryThrottleMode=SPQueryThrottleOption.Strict;
B. spQuery.QueryThrottleMode=SPQueryThrottleOption.Override;
C. spQuery.QueryThrottleMode=SPQueryThrottleOption.Disable;
D. spQuery.QueryThrottleMode=SPQueryThrottleOption.Default;
Answer: B
Explanation: The SPQueryThrottleOption enumeration has three values: Default, Override, and Strict. If you use the default value, the standard list view threshold applies to all users except local server administrators, who are not bound by either threshold. If you set the query throttle mode to Override, users who have the required permissions in the Web application user policy can query at the higher "auditors and administrators" threshold. Local server administrators remain unbound by either threshold. Finally, if you set the query throttle mode to Strict, this closes down the local server administrator loophole and the standard list view threshold applies to all users.
Scenario: Auditors have access to the page that provides statistics on Marketing documents. This page con-tains a report on document distribution over projects and information about the most active doc-uments, the top inactive documents, and the most active users. Processing the queries can result in working with huge result sets. You must ensure that the information on this page is always available and that the queries are not throttled. The relevant code segment is available in the code sections area (MarketingAudit.ascx.es).
Reference: Retrieve data more than the threshold limit
Q7. - (Topic 2)
You need to validate that specific users can delete tasks.
Which code segment should you insert at line CD04?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: D
Explanation: Retrieving all users from a SharePoint group
The SiteGroups property of the Web class gets all groups in all Web sites within a site
collection.
Example:
ClientContext clientContext = new ClientContext("http://MyServer/sites/MySiteCollection");
GroupCollection collGroup = clientContext.Web.SiteGroups;
Scenario: Project leads can remove task lists.
Reference: How to: Work with Users and Groups
Q8. DRAG DROP - (Topic 5)
A company uses SharePoint and Microsoft Dynamics CRM for collaboration and customer relationship management. The company uses Active Directory Domain Services (AD DS) for identity management. SharePoint and Microsoft Dynamics CRM are configured to use claims-based authentication. The company wants to authorize user access to SharePoint sites by using roles defined in Microsoft Dynamics CRM.
You create a custom claims provider. The provider adds a claim to the claim token for each role a user has in Microsoft Dynamics CRM. The provider also allows a site administrator to find and select roles from Microsoft Dynamics CRM to authorize user access. The custom claims provider must be created as a class library project to meet the unit testing requirements of the company. The custom claims provider project is complete and ready to be packaged for deployment.
You need to package and deploy the custom claims provider.
What should you do? (To answer, drag the appropriate actions to the correct location or locations in the answer area. Each action 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:
Q9. - (Topic 5)
Adventure Works uses SharePoint to store product and order information.
Product managers visit the Products list to see the status of each product. They request a feature that will allow them to easily see the recent and old product orders without opening the Products list. The products orders page is located at /sitepages/productorders.aspx, and the product order history page is located at /sitespages/productordershistory.aspx. Both pages require a query string parameter named ProductID.
You need to add custom actions to the Products list by using the least amount of administrative effort.
What should you do?
A. Add an empty element to the SharePoint project. Add a <CustomAction> tag, set the Location element to EditControlBlock, and then use the <UrlAction> tag for a redirect to the custom page.
B. Create a Windows Application and add a reference to Microsoft.SharePoint.Portal.CustomActions.dll and use the SPCustomActions class to add a custom action.
C. Open the site in SharePoint Designer. Create a custom List Item Display Template and then apply it to the Products List View Web Part.
D. Create a visual Web Part. Use a grid view with a template column and hyperlink, and databind the Products list. Add the Web Part to the allItems.aspx page of the Products list.
Answer: C
Explanation: 1. To add a menu item custom action feature to the app for SharePoint project Right-click the app for SharePoint project, and add a new Menu Item Custom Action item.
2. Select the host web to expose the custom action and choose a list template and custom
list as custom action scope to then click on Next button.
3. Enter the menu item text you want to show and page in App where you want to redirect
when the user selects the Menu item then click on the Finish button.
Example:
Note: When you are creating an app for SharePoint, custom actions let you interact with the lists and the ribbon in the host web. A custom action deploys to the host web when end users install your app. Custom actions can open a remote webpage and pass information through the query string. There are two types of custom actions available for apps: Ribbon and Menu Item custom actions.
Reference: Custom actions in SharePoint 2013
Q10. - (Topic 3)
You need to set the appropriate permission levels.
A variable named customRole references Wholesale.
Which code segment should you add at line UA09?
A. customRole.BasePermissions = _permissions | SPBasePermissions.ViewFormPages;
B. customRole.BasePermissions = _permissions | SPBasePermissions.ViewPages;
C. customRole.BasePermissions = SPBasePermissions.EmptyMask | SPBasePermissions.ViewPages;
D. customRole.BasePermissions = SPBasePermissions.ViewPages;
Answer: B
Explanation: Add the ViewPages permission to the permissions of the variable _permissions.
Scenario: User Authorization
A custom role named Wholesale must be created. Wholesale customers must be assigned to this role in order to view the promotions page.