Download New Updated (Spring 2015) Microsoft 70-489 Actual Tests 21-30

Ensurepass

 

 

QUESTION 21

DRAG DROP

You develop a provider-hosted SharePoint app that retrieves and displays weather information from an external site. The site contains lists of temperatures for different cities.

 

You need to create a Representational State Transfer (REST) endpoint URL in the app to retrieve hourly temperatures for a specific city from the site.

 

How should you complete the relevant code?

 

To answer, drag the appropriate term to the correct location or locations in the answer area. Each term 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.

 

clip_image002

 

Correct Answer:

clip_image004

 

 

 

 

 

 

 

 

 

 

 

QUESTION 22

HOTSPOT

You work for a company named Contoso, Ltd. that sells computer parts. You tag inventory lists by using a term set named Computer Parts Classification. The term set is structured as follows.

 

clip_image005

 

You must create a console application that accesses the SharePoint site and you must add a ClientContext object named ctx. You need to create a term named i7-2600K that is a child of the CPU node and add a shared property to the i7-2600K term.

 

How should you complete the relevant code?

 

To answer, select the appropriate code segment from each drop-down list in the answer area.

 

clip_image006

 

Correct Answer:

clip_image007

 

 

QUESTION 23

You develop a SharePoint app that displays information about automobile parts. You need to create a user profile property to classify automobile parts into categories. Which property name should you specify?

 

A.

part-Classification

B.

part.classification

C.

part_classification

D.

Part Classification

 

Correct Answer: B

 

 

 

 

 

 

 

 

 

QUESTION 24

DRAG DROP

You develop a .NET application named SPUserProfiles for a company called Contoso, Ltd.

 

SPUserProfiles communicates with a SharePoint app by using SharePoint Web Services. The SharePoint web service reference name is ProfileService. SPUserProfiles includes the following code segment: (Line numbers are included for reference only.)

 

clip_image009

 

You need to implement the UpdatePhoneNumber method.

 

How should you complete the relevant code?

 

To answer, drag the appropriate code segments to the correct target 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.

 

clip_image011

 

Correct Answer:

clip_image013

 

 

QUESTION 25

You develop a SharePoint app that reads social data from your company’s SharePoint site. You need to access the SocialFeedManager object. Which object or URL should you use?

 

A.

http://<siteUri>/_api/social.feed

B.

SocialFeedManager(ClientRuntimeContext, ObjectPath);

C.

http://<siteUri>/social.feed

D.

SPSocialFeedManager(UserProfile);

 

Correct Answer: B

 

 

QUESTION 26

DRAG DROP

You develop a feature in a SharePoint solution by using Visual Studio 2012. You insert several breakpoints in the feature event receiver to debug performance issues.

 

You need to ensure that the code stops running when the solution reaches a breakpoint.

 

Which three 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.

 

clip_image015

 

Correct Answer:

clip_image017

 

 

QUESTION 27

You have a custom Web Part that retrieves data across multiple task lists. Pages that contain the Web Part load slowly. You need to ensure that pages load as quickly as possible. Which methods should you use? (Each correct answer presents a complete solution. Choose all that apply.)

 

A.

CrossListQueryCache.GetSiteData(SPContext.Current.Site, siteUrl)

B.

CrossListQueryCache.GetSiteData(SPContext.Current.Site)

C.

Cache.Get(siteUrl)

D.

SPList.GetItems(spQuery)

 

Correct Answer: AC

Explanation:

A: GetSiteData method (SPSite, String) Gets the cache data from the specified site and from the specified webUrl.

C: Cache.Get Method

Retrieves the specified item from the Cache object.

 

 

QUESTION 28

DRAG DROP

You develop a SharePoint app for Contoso, Ltd. Contoso has offices in several countries. All of the local offices in each country are connected by using a Wide Area Network (WAN). Users store large data files in SharePoint document libraries. The users report that the files load very slowly.

 

You need to ensure that the files are cached the first time that the files are opened at a local office.

 

How should you complete the Windows PowerShell cmdlet?

 

To answer, drag the appropriate code segment 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.

 

clip_image019

 

Correct Answer:

clip_image021

 

 

 

 

 

 

QUESTION 29

You have a SharePoint publishing site. The marketing team tags their documents by using a managed metadata field named Location. The site has been fully crawled. Documents are tagged with city names only.

 

A SharePoint app on the site displays search results by using the following term set.

 

clip_image022

 

You create the following code segment to query the contents of the site: (Line numbers are included for reference only.)

 

clip_image023

 

You need to create a Keyword Query Language (KQL) expression to return results for all assets in the Central region.

 

Which code segment should you insert at line 02?

 

A.

varqueryTerms = “Location”;

B.

varqueryTerms = “577c8e48-d5d9-4e5f-8e35-408c723feb11”;

C.

varqueryTerms = “b49f64b3-4722-4336-9a5c-56c326b344d4”;

D.

varqueryTerms = “owstaxidlocation: 1acfae8a-70b4-4ce0-bfbf-96c0e711f 8df”

 

Correct Answer: C

 

 

 

 

 

 

 

 

 

QUESTION 30

HOTSPOT

You create a SharePoint app that displays a list of documents for a company that sells insurance policies. The documents have been crawled by the Search service.

 

You create managed properties named Underwriter and Bonded.

 

You must locate the documents that meet the following criteria:

 

clip_image025Created by using Microsoft Word 2002

clip_image025[1]Contains the exact phrase “life policy”

clip_image025[2]Were underwritten by Woodgrove

 

You need to design a search query that locates the required documents.

 

How should you complete the relevant code?

 

To answer, select the appropriate code segment from each drop-down list in the answer area.

 

clip_image026

 

Correct Answer:

clip_image027

 

Free VCE & PDF File for Microsoft 70-489 Real Exam

Instant Access to Free VCE Files: MCSE|MCSA|MCITP…
Instant Access to Free PDF Files: MCSE|MCSA|MCITP…