Developing Microsoft SharePoint Server 2013 Core Solutions
Question No: 71 DRAG DROP – (Topic 5)
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.)
Use the Get-AppInstance cmdlet to get a collection of app instances that are installed on an SPWeb object.
Use the Uninstall-SPAppInstance cmdlet to uninstall an instance of an app. This cmdlet is required to be run before a migration process.
$instance = Get-SPAppInstance -AppInstanceId $instance.Id Uninstall-SPAppInstance -Identity $spapp
This example uninstalls an instance of an app.
Question No: 72 – (Topic 5)
You need to retrieve data about all the lists in a site by using the REST (Representational State Transfer) API.
Which code segment should you use?
Explanation: Must use _api/web/lists:
To retrieve all of the lists in a specific SharePoint site, you would make a GET request to http://lt;site urlgt;/_api/web/lists.
Not B: The method must be GET (not POST).
Reference: How to: Complete basic operations using SharePoint 2013 REST endpoints
Question No: 73 – (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?
SPQuery with Site Collection set to the portal#39;s main page site collection
Content Query Web Part (CQWP)
Content Search Web Part (CSWP)
Explanation: CSWP can be configured to “see” items anywhere in SharePoint.
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)
Question No: 74 DRAG DROP – (Topic 5)
You plan to create a search-driven navigation that supports the Cross-site Publishing Feature.
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.)
Box 1: Insert a Content Search Web part on the page. Box 2: Select the Edit Web Part link.
Box 3: Build and save the query.
Box 4: Insert a Search Results Web Part on the page.
Box 1: Add a Content Search Web Part to a page
Box 2-3: Configure the query for a Content Search Web Part
In the Web Part, click the Content Search Web Part Menu arrow, and then click Edit Web Part.
In the Web Part tool pane, in the Properties section, in the Search Criteria section, click Change query.
Edit and change the query.
Box 4: (Search Result Web Part)
Here are some tools that make Cross-Site Publishing happen.
/ Content Search Web Part:
It allows to build your own query using a wizard, this means fetching the content you want to see, and then allows you to display them using predefined display templates. It uses Search to query, which therefore allows us to show content from another Site.
/ Search Results Web Part:
It can either show the results of a typed query in the Search Box, which is the traditional Search Results we know. But, and this is key, the Search Results also allows you to build a Query using the same Query Builder in the Content Search. In fact, I have found the Search Results to offer 95% of the same functionality as the Content Search. Therefore, it can also be used in Cross-Site Publishing Scenarios.
Question No: 75 – (Topic 5)
You develop a SharePoint app to create an approval workflow for expense reports. The app must collect user input before starting the workflow.
You need to use ASP.NET forms in the workflow. Which form type should you use?
Workflow input form
Workflow initiation form
Workflow task form
Workflow modification form
Explanation: You may want your workflow to collect information from the person who
starts it, and then reference this information later in the workflow. For example, imagine that you are designing a workflow that assigns a document review task. In some workflows of this kind, it might make sense to always automatically assign the review task to the same participant and to always use the same formula for calculating the due date. But in your workflow, you want the person who manually starts the workflow to specify both the reviewer and the due date. You can set this up by adding custom fields to the workflow initiation form and requiring that the workflow be started manually.
Reference: Create a workflow initiation form
Question No: 76 – (Topic 5)
You plan to create a workflow design by using Microsoft Visio 2013 and then import the design into SharePoint Designer 2013.
You need to ensure that you have branching capability. Which shape should you use?
Assign a Task
Explanation: A stage can contain any number of shapes and may include branching.
Question No: 77 DRAG DROP – (Topic 5)
You create a new Enterprise Content Management (ECM) project.
You add a content type to the Visual Studio Project by using the Content Type Designer in Visual Studio 2012.
What will the designer-generated XML look like? (To answer, drag the appropriate XML elements to the correct location or locations 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.)
* Target 1, target 5: Elements Element (Field)
Top-level element in a Feature manifest file that contains Feature element declarations. Example:
lt;Elements Id = quot;Textquot;gt;
* Target 2, 3, 4
The FieldRefs element contains a collection of FieldRef elements. The FieldRef element is a reference to a column defined elsewhere, either at the site or list level.
Question No: 78 – (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?
Explanation: If you designed a custom master page for your SharePoint 2010 and the ribbon is in your way, SharePoint has a built-in control that lets you hide it from anonymous users in few easy steps. Open and check-out your master page, find where your ribbon
control starts or look for lt;WebPartPages:SPWebPartManager id=”m” runat=”Server”/gt;. Place this control below lt;Sharepoint:SPSecurityTrimmedControl runat=”server” Permissions=”AddAndCustomizePages”gt;. Find where your ribbon control ends or look for
lt;div id=s4-workspacegt; and place the closing control above it
lt;/SharePoint:SPSecurityTrimmedControlgt;. Save, check-in the master page and publish it to see the changes. From now on, only logged in users with the right permissions will be able to see the ribbon on the top.
Not B: Permission should be set to AddAndCustomizePages not ManageSubWeb.
Question No: 79 – (Topic 5)
A company uses SharePoint team sites for their projects, which last for a month.
At the end of every month the project site must be archived and moved to a backup web application. The company plans to create a timer job.
You need to write custom code that will move the site from the production web application to the archived web application.
Which method of the timer job should you override?
Answer: B Explanation: Execute
Executes the job definition on the local machine and is intended to be used only by the timer service.
Note: After you create the constructors, you must override the Execute method of the SPJobDefinition class and replace the code in that method with the code that your job requires.
Incorrect: A: RunNow
Schedules the job for immediate execution. C: SPJobDefinition.Update method
Causes the job definition to save its state and propagate changes to all machines in the farm.
Makes the changes to the local server that are needed before the object can be used. Reference: Creating Timer Jobs in SharePoint 2010 that Target Specific Services
Question No: 80 HOTSPOT – (Topic 5)
A company develops a SharePoint app that employees use to submit expense reports. Employees can approve their own expenses for purchases less than $100. For expenses greater than $100, the app will authenticate both itself and the user before approval is requested.
The expense reporting app includes the following code. Line numbers are included for reference only.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
Token01 is used to retrieve the token for the User authorization policy only.
Token02 is used to retrieve the token for the User App authorization polic.
Token01 is of the TokenHelper class. Token01is used to retrieve the token for the User authorization policy only.
100% Free Download!
–Download Free Demo:70-488 Demo PDF
100% Pass Guaranteed!
–Download 2018 EnsurePass 70-488 Full Exam PDF and VCE
EnsurePass ExamCollection Testking Lowest Price Guarantee Yes No No Up-to-Dated Yes No No Real Questions Yes No No Explanation Yes No No PDF VCE Yes No No Free VCE Simulator Yes No No Instant Download Yes No No