Q1. 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:
Q2. DRAG DROP - (Topic 2)
You need add to code at line IL22 to implement the task list design.
You have the following code:
Which code segment should you include in Target 1, Target 2 and Target 3 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:
Q3. - (Topic 1)
You need to create rules in the CourierMobile app based on the ItemType that arrives.
For which ItemTypes should you test? (Each correct answer presents part of the solution. Choose all that apply.)
A. IPM.Schedule.Meeting.Tent
B. IPM.Note
C. IPM.Schedule.Meeting.Request
D. IPM.Appointment
E. IPM.Schedule.Meeting.Cancelled
F. IPM.Schedule.Meeting.Pos
G. IPM.Schedule.Meeting.Neg
Answer: D,E
Explanation: From scenario:
* The CourierMobile app receives Microsoft Outlook appointments (D) and Outlook appointment cancellations (E) from the CloudManager app. The appointments include the address of the location for pick-up or drop-off.
Q4. - (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
Q5. DRAG DROP - (Topic 4)
You need to create a collaboration template.
How should you complete the relevant 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:
Q6. - (Topic 5)
You create a cloud-hosted SharePoint app.
You must make the app available in the SharePoint Store for customers to install on their host webs.
You need to keep the style and navigation of the app the same as the host web of the app after it is installed by any customer.
What should you do?
A. Add a reference to SP.UI.Controls.js on the host web. Pass the AppUrl parameter to the host web. Apply branding to the host web.
B. Copy the CSS file from the app to the host web. Run the Chrome control to convert the CSS file to the host web format. Apply the styles contained in the CSS file to the host web.
C. Use a Chrome control to find the differences in the styles between the host web and the app. Resolve all of the differences by using JavaScript.
D. Add a reference to the SP.UI.Controls.js file located in the new /_layouts/15 directory. Pass the HostUrl parameter to the start page of the app. Use the Chrome control in JavaScript.
Answer: D
Explanation: Microsoft allows developers to import a very basic version of the SharePoint 2013 chrome into their apps without having to manually create matching HTML controls. The functionality for this can be found in the SP.UI.Controls.js file located in the new /_layouts/15 directory. To use the chrome control, first add a reference to SP.UI.Controls.js (make sure you've already loaded the requisite JQuery files and other dependencies), then add an empty <div> to your page markup at or near the top of the page.
Reference: Using the Chrome Control in SharePoint 2013 Apps
Q7. DRAG DROP - (Topic 4)
You need to apply the Design Package to all of the required sites.
You have the following code:
Which code segments should you include in Target 1 and Target 2 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:
Q8. HOTSPOT - (Topic 5)
You develop an autohosted app for SharePoint.
The app will access SharePoint data in the host web.
You need to configure the minimum required data access permissions for the app.
How should you configure permissions in the app manifest? (To answer, select the
appropriate option from each drop-down list in the answer area.)
Answer: