Microsoft 70-489 Exam Practice Questions (P. 2)
- Full Access (48 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #6
HOTSPOT -
A company uses SharePoint to manage a large number of documents.
The Document ID Service feature is enabled. You need to create a custom class that generates a unique ID for each document.
How should you complete the class definition? (To answer, select the appropriate code segment from each drop-down list in the answer area.).
Hot Area:

A company uses SharePoint to manage a large number of documents.
The Document ID Service feature is enabled. You need to create a custom class that generates a unique ID for each document.
How should you complete the class definition? (To answer, select the appropriate code segment from each drop-down list in the answer area.).
Hot Area:

send
light_mode
delete
Question #7
HOTSPOT -
You implement eDiscovery in SharePoint to access Exchange Online mailbox data.
You need to ensure that users continue to have access to Exchange Online mailbox data after an In-Place Hold is applied.
On the Exchange admin center page, which option should you select? (To answer, select the appropriate option in the answer area.)
Hot Area:

You implement eDiscovery in SharePoint to access Exchange Online mailbox data.
You need to ensure that users continue to have access to Exchange Online mailbox data after an In-Place Hold is applied.
On the Exchange admin center page, which option should you select? (To answer, select the appropriate option in the answer area.)
Hot Area:

send
light_mode
delete
Question #8
You use Visual Studio to design a SharePoint solution for a company that provides computer support services to customers around the world.
The solution must list the customer service representatives that resolve the highest number of support requests. The solution also must allow filtering of customer service representatives by region.
You need to configure the solution to meet the requirements.
Which steps should you take? (Each correct answer presents part of the solution. Choose all that apply.)
The solution must list the customer service representatives that resolve the highest number of support requests. The solution also must allow filtering of customer service representatives by region.
You need to configure the solution to meet the requirements.
Which steps should you take? (Each correct answer presents part of the solution. Choose all that apply.)
- AAdd a Recommended Items Web Part to the page.
- BAdd and configure a Refinement Web Part to the page.
- CAdd regions as property filters to the Search Results Web Part.
- DConfigure the query for the Content Search Web Part.
Correct Answer:
CD
CD
send
light_mode
delete
Question #9
DRAG DROP -
You develop a SharePoint app that uses the client-side object model (CSOM) to retrieve items from the search index.
You need to implement the client-side query code.
Which four code segments should you use in sequence? (To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.)
Select and Place:

You develop a SharePoint app that uses the client-side object model (CSOM) to retrieve items from the search index.
You need to implement the client-side query code.
Which four code segments should you use in sequence? (To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.)
Select and Place:

Correct Answer:
Note:
Reference:
* Step 1:
First we need to add the necessary references such as.
usingMicrosoft.SharePoint.Client;
usingMicrosoft.SharePoint.Client.Search;
usingMicrosoft.SharePoint.Client.Search.Query;
Step 2:
Start by creating aClientContextobject and pass in the URL to a site. Put this in a using block.
Using(ClientContextclientContext =newClientContext("http://servername"))
We then need to create aKeywordQueryclass to describe the query. This class is similar to the server sideKeywordQueryclass but there are some differences.
We pass the ClientContext into the constructor.
KeywordQuerykeywordQuery =newKeywordQuery(clientContext);
* Step 3:
Unlike the server object model, with the Client OM we have to use another class,SearchExecutor, to send the queries to the search engine. We pass a
ClientContext to it as well:
SearchExecutorsearchExecutor =newSearchExecutor(clientContext)
Step 4:
on the ClientContext object. If you have done a lot of Client OM work before, you might first but it is not required. clientContext.ExecuteQuery();
Reference: How to: Query Search with the SharePoint 2013 Client Object Model

Note:
Reference:
* Step 1:
First we need to add the necessary references such as.
usingMicrosoft.SharePoint.Client;
usingMicrosoft.SharePoint.Client.Search;
usingMicrosoft.SharePoint.Client.Search.Query;
Step 2:
Start by creating aClientContextobject and pass in the URL to a site. Put this in a using block.
Using(ClientContextclientContext =newClientContext("http://servername"))
We then need to create aKeywordQueryclass to describe the query. This class is similar to the server sideKeywordQueryclass but there are some differences.
We pass the ClientContext into the constructor.
KeywordQuerykeywordQuery =newKeywordQuery(clientContext);
* Step 3:
Unlike the server object model, with the Client OM we have to use another class,SearchExecutor, to send the queries to the search engine. We pass a
ClientContext to it as well:
SearchExecutorsearchExecutor =newSearchExecutor(clientContext)
Step 4:
on the ClientContext object. If you have done a lot of Client OM work before, you might first but it is not required. clientContext.ExecuteQuery();
Reference: How to: Query Search with the SharePoint 2013 Client Object Model
send
light_mode
delete
Question #10
You develop a SharePoint app for a toy company that uses the Representational State Transfer (REST) API for search. The site collections in the app have been crawled recently and use the default search schema.
The app includes the following code segment: (Line numbers are included for reference only.)

You create the following result sources.

You need to ensure that the app only displays PDF documents.
Which code segment should you insert at line 03?
The app includes the following code segment: (Line numbers are included for reference only.)

You create the following result sources.

You need to ensure that the app only displays PDF documents.
Which code segment should you insert at line 03?
- AvarresultSourceId = "Site PDF";
- BvarresuitSourceId = "4C50FE18-B254-47A1-ABAD-0B6C4577D914";
- CvarresultSourceId = "0F41A999-523A-41ED-AAAD-9D414A0FC3B4";
- DvarresultSourceId = "82951A0C-6385-4E29-8D7F-4AB92FE9F536"; D
Correct Answer:
Explanation
Explanation
send
light_mode
delete
All Pages