Deal of The Day! 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-204 Topic 2 Question 95 Discussion

Actual exam question for Microsoft's AZ-204 exam
Question #: 95
Topic #: 2
[All AZ-204 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 question, 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 for 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 SearchIndexClient o bject 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. Call the Documents.Suggest method of the SearchIndexClient and pass the DataSource.

Does the solution meet the goal?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Kizzy
23 days ago
Wait, is the Suggest method really the right one to use here? That's typically for autocomplete functionality, not for importing data.
upvoted 0 times
...
Ora
25 days ago
This is a tricky one. I think the solution is missing a step - we need to create a SearchDocument object for each restaurant and then add it to the IndexBatch before calling Documents.Index.
upvoted 0 times
Jess
2 days ago
I think the solution is missing a step - we need to create a SearchDocument object for each restaurant and then add it to the IndexBatch before calling Documents.Index.
upvoted 0 times
...
...
Virgina
1 months ago
The solution seems a bit off. I think we need to create an IndexBatch and then use the Documents.Index method to add the data to the index.
upvoted 0 times
Sol
2 days ago
I agree, we need to use the Documents.Index method to add the data to the index.
upvoted 0 times
...
Roselle
16 days ago
I think we should create an IndexBatch instead of a DataContainer.
upvoted 0 times
...
...
Joesph
1 months ago
Hmm, I'm not sure that's the correct approach. Aren't we supposed to use the Documents.Index method to add the data to the search index?
upvoted 0 times
Terrilyn
16 hours ago
No, the solution does not meet the goal.
upvoted 0 times
...
Lavonda
21 days ago
I think we should use the Documents.Index method instead.
upvoted 0 times
...
...
Margurite
2 months ago
The solution doesn't seem right. Shouldn't we be using the Documents.Upload method to import the data instead of the Suggest method?
upvoted 0 times
Odelia
28 days ago
User2: No, the solution is correct. We need to use the Suggest method to import the data.
upvoted 0 times
...
Sunshine
1 months ago
User1: I think we should be using the Documents.Upload method instead.
upvoted 0 times
...
...
Catarina
2 months ago
I'm not sure, I think there might be a better way to import the data.
upvoted 0 times
...
Virgina
2 months ago
I agree with Abel, the steps seem to be in line with the task.
upvoted 0 times
...
Abel
2 months ago
I think the solution meets the goal.
upvoted 0 times
...

Save Cancel