AZ-204 · Question #175
A team 'X' has created an Index in the Azure Search service. You have toupload data into the Index. Riley Proposed the following steps to carryout from his .Net program: - Create a SearchlndexClient…
The correct answer is A. TRUE. The proposed steps correctly describe how to upload data to an Azure Search Index using the .NET SDK by creating an IndexBatch and calling Documents.Index.
Question
Options
- ATRUE
- BFALSE
How the community answered
(59 responses)- A78% (46)
- B22% (13)
Why each option
The proposed steps correctly describe how to upload data to an Azure Search Index using the .NET SDK by creating an `IndexBatch` and calling `Documents.Index`.
The steps outlined are correct for uploading data to an Azure Search index using the .NET SDK. You create a `SearchClient` or `SearchIndexClient` to interact with the index, then construct an `IndexBatch` containing the documents to be added, and finally call a method like `UploadDocuments`, `MergeDocuments`, or `MergeOrUploadDocuments` (or `Index` for older SDK versions) on the client's `Documents` property, passing the `IndexBatch`.
The steps correctly reflect the standard process for uploading data to an Azure Search index using the .NET SDK.
Concept tested: Azure Search .NET SDK data upload
Source: https://learn.microsoft.com/en-us/azure/search/search-howto-dotnet-sdk
Topics
Community Discussion
No community discussion yet for this question.