BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft Exam AZ-203 Topic 5 Question 1 Discussion

Actual exam question for Microsoft's AZ-203 exam
Question #: 1
Topic #: 5
[All AZ-203 Questions]

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

Margie's Travel is an international travel and bookings management service. The company is expanding into restaurant bookings. You are tasked with implementing Azure Search tor the restaurants listed in their solution.

You create the index in Azure Search.

You need to import the restaurant data into the Azure Search service by using the Azure Search NET SDK.

Solution:

1. Create a SearchServiceClient object to connect to the search index.

2. Create a DataContainer that contains the documents which must be added.

3. Create a DataSource instance and set its Container property to the DataContainer.

4. Set the DataSource property of the SearchServiceCIient

Does the solution meet the goal?

Show Suggested Answer Hide Answer
Suggested Answer: B

Use the following method:

Create a SearchIndexClient object to connect to the search index

Create an IndexBatch that contains the documents which must be added.

Call the Documents.Index method of the SearchIndexClient and pass the IndexBatch.

References:

https://docs.microsoft.com/en-us/azure/search/search-howto-dotnet-sdk


Contribute your Thoughts:

Currently there are no comments in this discussion, be the first to comment!


Save Cancel