PrepAway - Latest Free Exam Questions & Answers

Which code segment should you insert at line CD04?

###BeginCaseStudy###

Testlet 1
A client asks you to create a basic task tracking app for SharePoint. The app will be hosted remotely. The users
will be able to set up task lists, mark tasks as completed, and manage their task lists.
Business Requirements
The client specifies the following business requirements:
Users can create task lists.
Users can retrieve task lists.
Project leads can remove task lists.
Users can modify task lists.
Only users with a paid license can use the app.
Tasks can be tagged with the programming language being used. Task list items may be tagged only with
the following terms: C++, C#, and JavaScript.
Navigational links across the top should be driven by the term store and use URLs that will improve search
engine ranking.
Set a system message that all users can access without the need to query a data source.
Remote users will authenticate to the app by using a username and password.
During development, the app will be tested by deploying to a development SharePoint site at http://
sharepoint.contoso.com/tasks.
When completed, the app will be published to the Microsoft Store as a paid app.
Existing Site Configuration
The table below shows the current site configuration for the client’s SharePoint site.

Task List Design
The app should create a SharePoint list named Tasks with the following attributes:

User Groups
SharePoint groups will be used to manage access to features of the app.

Task Display
The app should retrieve the Tasks list and display the contents on a webpage 20 tasks at a time.
Technical Requirements
You have the following requirements:
Query the Microsoft apps licensing service to validate the license.
Package and configure the app.
Configure navigation to use taxonomy-based navigation automatically generated by SharePoint.
Utilize CSOM to retrieve data from the SharePoint site.
Implement the system message by using a property bag that uses the key named SystemMessage.
Implement and configure the credential store.
The app will be internally tested for at least one month to track and fix any run-time errors.
Pending Issues
When you deploy the app from Visual Studio 2012, you receive the error: “Error occurred in deployment step
‘Install app for SharePoint’: Sideloading of apps is not enabled on this site.”
Application Structure
Relevant portions of the app files are shown below. (Line numbers in the code segments are included for
reference only and include a two-character prefix that denotes the specific file to which they belong.)
LicenseValidation.cs

SystemMessage.cs

ImpIementTaskList.cs

RetrieveTaskList.cs

CanDeleteTask.cs

TermSet Navigation.cs

###EndCaseStudy###

You need to validate that specific users can delete tasks.
Which code segment should you insert at line CD04?

PrepAway - Latest Free Exam Questions & Answers

A.
Option A

B.
Option B

C.
Option C

D.
Option 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.
How to: Work with Users and Groups


Leave a Reply