Q1. HOTSPOT - (Topic 1)
You need to design the CloudManager 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. DRAG DROP - (Topic 5)
You need to create workflows for your business processes by using the least amount of development effort.
Which four 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:
Q3. - (Topic 5)
Adventure Works uses a SharePoint publishing site for an external website at www.adventureworks.com. The user interface is implemented by using HTML5, CSS 3, and JavaScript.
You need to ensure that the site designers have an efficient way to create and modify the JavaScript files.
What should you do?
A. Set up a mapped network drive in Design Manager. Open the mapped drive and create a folder. Modify the JavaScript files by using Microsoft Notepad.
B. Open the site in SharePoint Designer. From Master Pages select the JavaScript files to modify them.
C. Open the site in SharePoint Designer. From All Files, double-click the _private folder and then select the JavaScript folder. Create a folder. Modify the JavaScript files by using Microsoft Notepad.
D. Open the site in SharePoint Designer. From Master Pages, download the JavaScript files, modify them by using Microsoft Notepad, and then upload them after the changes.
Answer: B
Explanation: Publish and apply design Most assets used by your design, such as images, HTML, CSS, and JavaScript files, will reside in the Master Page Gallery. The Master Page Gallery is a SharePoint document library that by default has versioning turned on, which creates major and minor (draft) versions each time you edit a file.
Reference: Master pages, the Master Page Gallery, and page layouts in SharePoint 2013 https://msdn.microsoft.com/EN-US/library/office/dn205271.aspx
Q4. DRAG DROP - (Topic 5)
You create SharePoint apps for multiple clients.
Each client has a unique environment with specific requirements.
You need to choose the appropriate hosting location for each app.
What should you do? (To answer, drag the appropriate hosting options to the correct description in the answer area. Each hosting option 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. - (Topic 4)
You need to add the search box to the publishing site.
What should you do?
A. Generate a code snippet and paste it into the HTML file.
B. Edit the default.master master page and then add the search box control.
C. Add the Search Web Part to the Welcome page.
D. Edit the page layout.
Answer: A
Explanation:
Scenario: A search box must be available on all publishing sites.
The publishing site design is delivered as a set of HTML files (litwarepublishing.html), CSS
(Litwarepublishing.css), and image files from the marketing company.
Q6. - (Topic 2)
You need to complete the code at line LV19 to implement the validation of the app license. Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: C
Explanation: Scenario: Only users with a paid license can use the app.
Q7. DRAG DROP - (Topic 5)
You have an app named TaskManager published at http://sharepoint.contoso.com/apps.
You need to remove the app and ensure that users will no longer be able to use the app by using Windows PowerShell cmdlets.
What should you do? (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:
Q8. DRAG DROP - (Topic 5)
You work on a SharePoint Enterprise Content Management (ECM) project.
You need to ensure that all Microsoft Word documents are converted to Portable
Document Format (PDF) once they are published and approved.
You have the following code:
Which code segments should you include in Target 1, Target 2, Target 3 and Target 4 to complete the code? (To answer, drag the appropriate code segments to the correct targets 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:
Q9. - (Topic 4)
You need to create a design package for the publishing sites.
What should you do?
A. Use SharePoint Designer to create master pages and a design package.
B. Use Visual Studio 2012 to create master pages and generate a design package.
C. Use display templates.
D. Use Design Manager.
Answer: D
Explanation: InSharePoint 2013, Design Manager can help web developers and designers build and export the visual design of a SharePoint site collection as a package. This package can easily be distributed to customers, or other designated groups, for installation on their site collections. This new feature reduces the complexity of transporting designs, and makes it easier for customers to outsource the visual design of their sites.
Scenario: During the creation and application of the design package to the publishing site, SharePoint 2013 out-of-the-box capabilities must be used as much as possible to ensure simple design changes and to simplify the upgrade procedures.
Reference: SharePoint 2013 Design Manager design packages
Q10. - (Topic 2)
You receive an error when you deploy the app.
You need to resolve the error.
What should you do?
A. Deploy the app to http://contoso-public.sharepoint.com.
B. Enable side-loading of apps in the Visual Studio project properties.
C. Deploy the app to https://contoso-my.sharepoint.com.
D. Deploy the app to https://contoso.sharepoint.com/tasks.
Answer: D
Explanation: We should deploy the app to the Development site, that is https://contoso.sharepoint.com/tasks (see Existing Site Configuration in scenario).
Note:
* Loading Apps directly from Visual Studio only works if the destination is a Developer site. That form of distribution, called side loading, is only used when testing and debugging an App. To load an App in a regular site you need to add the .App package produced in Visual to the App Catalog site that is associated with your Web Application. From there you will be able to load the app using the Site Contents link in your site.
* Issue: While we try creating a SharePoint 2013 App in a SharePoint hosted model and when we try to deploy the solution, we get an “Error occurred in deployment step ‘Install app for SharePoint’: Side loading of apps is not enabled on this site.
Solution:
1. That is, while creating a site collection/site where you want to deploy the app, create it using the “Developer Site” template under the Collaboration tab.
2. Always the app should be published/deployed to the developer site (A site collection with the Developer Site Template). And from this developer site you can add the App to your SharePoint site
Scenario: Pending Issues When you deploy the app from Visual Studio 2012, you receive the error: "Error occurred in de-ployment step 'Install app for SharePoint': Sideloading of apps is not enabled on this site."
Reference: Side Loading of apps is not enabled on this site error while installing app in SharePoint 2013
Q11. - (Topic 5)
You prepare an on-premise farm to support the creation of SharePoint apps.
You need to create an instance of a service application before building apps.
Which service application should you create?
A. On-premises service
B. App Deployment service
C. Site Subscriptions Settings service
D. Secure Store service
Answer: C
Explanation: Apps rely on the App Management and Microsoft SharePoint Foundation Subscription Settings service applications. These service applications use the multi-tenancy features to provide app permissions and create the subdomains for apps.
Note: Deployed services are named service applications. A service application provides a resource that you can share across sites in a farm or sometimes across multiple farms, and users can access them through a hosting web application. Service applications are associated to web applications by service application connections.
Reference: Configure an environment for apps for SharePoint (SharePoint 2013)
https://technet.microsoft.com/en-us/library/fp161236.aspx
Q12. 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:
Q13. - (Topic 3)
You need to set the appropriate permission levels. A variable named customRole references Wholesale.
Which code segment should you add at line UA11?
A. customRole.BasePermissions = SPBasePermissions.ViewPages;
B. customRole.BasePermissions = _permissions | SPBasePermissions.ViewFormPages;
C. customRole.BasePermissions = SPBasePermissions.EmptyMask | SPBasePermissions.ViewPages;
D. customRole.BasePermissions = _permissions | SPBasePermissions.ViewPages;
Answer: D
Explanation:
* ViewPages, View pages in a Web site.
* Scenario: A custom role named Wholesale must be created. Wholesale customers must be assigned to this role in order to view the promotions page.
Incorrect:
Not A, not C: The previous line, UA10, is: _permissions = this.GetExistingPermissions();
We should add this permission and the ViewPages permission.
Not B: ViewFormPagesView forms, views, and application pages, and enumerate lists.
Reference: SPBasePermissions enumeration
https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spbasepermissions.aspx
Q14. - (Topic 1)
You need to ensure that the CourierMobile app determines whether the franchisee owns the account.
What should you do?
A. Use OAuth and App only security. Request the Read right from the http://sharepoint/content/ sitecollection/web/list scope URI.
B. Use OAuth and App+User security. Request the Read right from the http://sharepoint/content/ sitecollection scope URI.
C. Use SPSecurity.RunWithElevatedPrivileges to connect to SharePoint and read from the Accounts list in the site collection.
D. Use the SharePoint user credentials of the bicycle messenger to connect to SharePoint and read from the Accounts list in the site collection.
Answer: B
Explanation: * SharePoint users three types of authorization policies. The user-only policy requires only that the call to SharePoint include an authenticated user identity. The app-only policy requires only that the call include only an authenticated app identity. The user+app policy requires that the call include both kinds of authenticated identities.
* You may have already heard that OAuth 2.0 plays an important role in the authentication and authorization of apps for SharePoint. It does, but it is not necessarily a part of the authorization story for every app for SharePoint. If you plan to build an app for SharePoint that runs in an remote web application and communicates back to SharePoint using server-side code, you will need to use OAuth.
Scenario:
* The CourierMobile app must be able to connect to the SharePoint Customers list and verify whether the account belongs to the franchisee to avoid pickups or deliveries to customers that do not belongs to the franchisee. When the CourierMobile add accesses the Customers list, it must only read its contents with the minimum permissions necessary.
* Margie's Travel provides an API to enable external developers to authenticate by using OAuth and claims-based authentication. Many couriers are members of Margie's Travel
Reference: Authorization and authentication of apps for SharePoint 2013
Q15. HOTSPOT - (Topic 5)
A company hosts its public website by using a SharePoint publishing site template. The website allows customers to browse and buy company products. The website user interface is optimized to support multiple browsers, smartphones and tablets.
You need to enable support for a new tablet type.
Which Design Manager option should you use? (To answer, select the appropriate link in the answer area.)
Answer: