Proper study guides for Refresh Microsoft Developing Microsoft SharePoint Server 2013 Advanced Solutions certified begins with Microsoft 70-489 preparation products which designed to deliver the Realistic 70-489 questions by making you pass the 70-489 test at your first time. Try the free 70-489 demo right now.
Q20. DRAG DROP - (Topic 1)
You need to add code to line MP22 to create the custom profile property.
How should you complete the relevant code? (To answer, drag the appropriate code segments to the correct locations in the answer area. Each code segment may be used once or not at all. You may need to drag the split bar between panes or scroll to view content.)
Answer:
Q21. - (Topic 1)
You need to configure the Content Enrichment web service to index content from the AbstractIndexer service.
What should you do?
A. Set the value of the OutputProperties array to Trigger=True.
B. Set the value of the SendRawData property to false.
C. Configure conditions for the Trigger property.
D. Set the value of the InputProperties property to Trigger=True.
Answer: A
Q22. - (Topic 5)
You create a site collection for Contoso, Ltd. by using the Community Site template. My Sites are configured. Users access the community site and view newsfeeds by clicking the Newsfeed link on the community site. You create a custom Web Part that displays the latest newsfeed posts for the user that is logged in.
The Web Part must use Representational State Transfer (REST) to retrieve items from the Newsfeed.
You need to define the correct uniform resource locator (URL) to access items.
Which URL should you use?
A. http://my.contoso.com/_api/search
B. http://my.contoso.com/_api/SP.UserProfiles.PeopleManager
C. http://community.contoso.com/_api/web/lists/microfeed
D. http://my.contoso.com/_api/social.feed/my/Feed
Answer: D
Explanation: The my resource represents the current user. When used inline in the endpoint URI, it sets the context of the request to the current user. For example, http://contoso.com/_api/social.feed/my/news gets the newsfeed for the current user.
Reference: Social feed REST API reference for SharePoint 2013
Q23. HOTSPOT - (Topic 5)
Contoso, Ltd. is integrating an Enterprise Resource Planning (ERP) system with SharePoint by using Business Connectivity Services (BCS). The ERP system is a Windows Communication Foundation (WCF) service that is hosted in Internet Information Services (IIS). The WCF service is named people.svc and is located at http://contoso.com:8080. The metadata for the service is found at http://contoso.com:808/mex.
You need to create a data connection for the EPM system.
In the WCF Connection dialog box, how should you configure the connection to the WCF service? (To answer, select the appropriate option from each drop-down list in the answer area.)
Answer:
Q24. HOTSPOT - (Topic 5)
You use the SharePoint 2013 Management Shell to access a SharePoint farm. A user reports an error in one of the apps that you have installed. The error message contains the correlation token ID of b49f64b3-4722-4336-9a5c-56c326b344d4.
You need to save a report of the complete error trace for all errors that were reported in the previous 30 minutes.
How should you complete the Windows PowerShell cmdlet? (To answer, select the appropriate option from each drop-down list in the answer area.)
Answer:
Q25. DRAG DROP - (Topic 5)
You develop a SharePoint site by using the Team Site template. Users share large images by using the team site.
You need to configure the SharePoint site so that images render at a maximum size of 400px wide and 200px high.
Which three actions should you perform in sequence? (To answer, move the appropriate actions from the list of actions to the answer).
Answer:
Q26. DRAG DROP - (Topic 5)
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.)
Answer:
Q27. - (Topic 3)
You need to configure search engine optimization for the site.
What should you do? (Each correct answer presents part of the solution. Choose all that apply.)
A. Disable anonymous access to the web application while you make changes.
B. Activate the Search Engine Sitemap feature in the site collection.
C. Disable anonymous access to the site collection while you make changes.
D. On the Search Engine Optimization Settings page, in the Include these meta tags in pages text box, enter <meta name="do-not-follow" value="/_Configuration Files/" />
E. Ensure that the Search Engine Sitemap job is running.
F. On the Search Engine Sitemap Settings page, enter Disallow: /_ConfigurationFiles/ to the exclusion rules.
Answer: B,C,D
Explanation: Steps in the SEO process:
Configure SEO settings for the site collection.
(B, not E) Configure sitemap settings for the site collection.
Add and edit SEO metatags.
D (not F): Configure SEO settings for the site collection Verify site ownership Sign in to the webmaster tools portal for your desired search engine and provide requested information about your website. From your SharePoint Public Website home page, click Settings Small Settings gear that took the place of Site Settings. > Site settings > Site Collection Administration > Search engine optimization settings. Click Include these meta tags in pages. Copy the meta tag provided by the webmaster tools portal, and paste it into the box. Click OK. From the webmaster tools portal, ask the search engine to verify your ownership of this website.
Q28. - (Topic 4)
You need to configure navigation for the publishing portal.
What should you do? (Each correct answer presents part of the solution. Choose all that apply)
A. Set the value of the Global Navigation option to Managed Navigation.
B. Select the root term for navigation within the site collection.
C. Set the value of the Global Navigation option to Structural Navigation.
D. Select the term for navigation within the site collection.
E. Set the Current Navigation to display the same navigation items as the parent site.
F. Set the value of the Current Navigation option to Managed Navigation.
Answer: A,C,E
Q29. - (Topic 2)
You need to implement logging.
Which items should you implement? (Each correct answer presents a complete solution. Choose all that apply.)
A. SPDiagnosticsServiceBase.WriteEvent
B. Microsoft.SharePoint.Diagnostics.ULSLogEntry
C. SPUser.Sid
D. PortalLog.LogString
E. SPAlertTemplate
F. SPSecurity.RunWithElevatedPrivileges
Answer: B,F
Explanation: F: The SPSecurity.RunWithElevatedPrivileges executes the specified
method with Full Control rights even if the user does not otherwise have Full Control.
From Scenario:
You design an application framework. The framework is used by other developers on the
team. The framework must include entry points that are used to log errors and exceptions.
You need the entry points.
Incorrect:
Not D: PortalLog.LogString method
This member is reserved for internal use and is not intended to be used directly from your
code.
Q30. - (Topic 1)
You need to ensure that employees can change their display name.
Which object model should you use?
A. Use the server-side object model.
B. Use a Representational State Transfer (REST) based service.
C. Use the JavaScript object model.
D. Use the .Net client-side object model.
Answer: A
Q31. DRAG DROP - (Topic 5)
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.)
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.)
Answer:
Q32. HOTSPOT - (Topic 1)
You need to add code to line CM07 to create the Research Content document set.
How should you complete the relevant code? (To answer, select the appropriate option from the dropdown list in the answer area.)
Answer:
Q33. DRAG DROP - (Topic 5)
You develop a SharePoint app that uses the client-side object model (CSOM) to run search
queries.
You need to implement a method that searches for the term SharePoint.
You have the following code:
Which code segments should you include in Target 1, Target 2, Target 3, Target 4 and Target 5 to complete the code? (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.)
Answer:
Q34. DRAG DROP - (Topic 5)
You develop a provider-hosted SharePoint app that retrieves and displays news headlines from an external site named News. The site contains lists of news headlines from many news sources.
You need to create a Representational State Transfer (REST) endpoint URL in the app to retrieve hourly headlines from the site for a specific news source.
You have the following code:
Which code segments should you include in Target 1, Target 2, Target 3 and Target 4 to complete the code? (To answer, drag the appropriate term to the correct targets 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.)
Answer:
Q35. - (Topic 5)
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)
Answer: A,C
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.
Q36. DRAG DROP - (Topic 1)
You need to configure authentication for the external content type in the production environment.
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.)
Answer:
Q37. - (Topic 3)
You need to configure search engine optimization for the site collection.
On the Search Engine Optimization Settings page, what should you do? (Each correct answer presents part of the solution. Choose all that apply.)
A. Select the Do not filter link parameters option.
B. In the Filter link parameters text box, enter agentName&officeId&certs
C. In the Filter link parameters text box, enter agentName;officeId
D. In the Filter link parameters text box, enter agentName&officeId
E. Select the Filter link parameters option.
F. In the Filter link parameters text box, enter agentName;officeId;certs
Answer: B,E
Explanation: * From scenario:
The search engine must recognize that the following URLs display the same information
about the same agent:
http://www.contoso.com/FindAnAgent?agentName=JohnDoe&officeId=Sacramento
http://www.contoso.com/FindAnAgent?agentName=JohnDoe&officeId=Sacramento8icerts=
true
Q38. DRAG DROP - (Topic 5)
Users report that an app is slow to load. You navigate to the start page for the app in Internet Explorer and then open the Developer Tools window.
You need to debug the JavaScript code.
Which five 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.)
Answer: