70-488 Exam - Developing Microsoft SharePoint Server 2013 Core Solutions

certleader.com

Q1. - (Topic 5) 

The Contoso SharePoint on-premise intranet portal stores content in 50 site collections. Contoso wants to display all content tagged with a metadata term on the main page of the portal. 

You need to display all documents with the metadata term without using any custom code. 

Which technology should you use? 

A. SPQuery with Site Collection set to the portal's main page site collection 

B. Content Query Web Part (CQWP) 

C. Content Search Web Part (CSWP) 

D. SPSiteDataQuery 

Answer:

Explanation: CSWP can be configured to “see” items anywhere in SharePoint. 

Incorrect: 

Not B, not D: CQWP and related SPSiteDataQuery can only search within the current site 

collection. 

The Content Query Web Part has the following limitations: 

/You can only aggregate data within a single site collection. 

/You can only aggregate list information. 

Reference: Using the Content Search web part (and understanding SP2013 search) 

Q2. - (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:

Explanation: The property CommandUIVisible shows or hides the ribbon section at the top 

of the application page. 

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 

Q3. DRAG DROP - (Topic 4) 

You need to ensure that the features required for the Litware Team Site web template are referenced correctly in the ONET.XML file. 

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:  

Q4. DRAG DROP - (Topic 5) 

You troubleshoot the sandbox solutions that your team builds. 

You need to redeploy a sandbox solution. You also need to identify which process must be debugged. 

Where should you redeploy the solution, and which process should you debug? (To answer, drag the appropriate statements to the correct location or locations in the answer area. Each statement 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. DRAG DROP - (Topic 5) 

You add a site column for an Enterprise Content Management (ECM) project by using the 

Site Column 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 element 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:  

Q6. DRAG DROP - (Topic 3) 

You need to add code at line CT11 to create the content types. 

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:  

Q7. - (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:

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 

Q8. - (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:

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 

Q9. - (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 

Q10. - (Topic 5) 

The Contoso SharePoint on-premise intranet portal stores content in 50 site collections. 

Contoso must display all content tagged with a metadata term on the main page of the portal. 

You need to display all documents with the metadata term without using any custom code. 

Which technology should you use? 

A. Content Query Web Part (CQWP) 

B. Content Search Web Part (CSWP) 

C. TaxonomySession 

D. CamlQuery 

Answer:

Explanation: CSWP can be configured to “see” items anywhere in SharePoint. 

Incorrect: 

Not A: CQWP and related SPSiteDataQuery can only search within the current site 

collection. 

Not C: For TaxonomySession you would have to write code. 

Not D: The CamlQuery class just specifies a query on a list. 

Reference: Using the Content Search web part (and understanding SP2013 search)