nerdexam
Microsoft

AZ-204 · Question #171

A team 'PNX' has created an Index in the Azure Search service. Ted has to upload data into the Index. To carry out from his .Net program he Proposed the following steps: - Create a SearchlndexClient…

The correct answer is B. FALSE. The proposed steps for uploading data to an Azure Search Index are incorrect because they reference DataContainer, DataSource, and Documents.Search, which are not the correct components for document upload.

Submitted by lukas.cz· Mar 30, 2026Connect to and consume Azure services and third-party services

Question

A team 'PNX' has created an Index in the Azure Search service. Ted has to upload data into the Index. To carry out from his .Net program he Proposed the following steps: - Create a SearchlndexClient object to connect to the search index. - Create a DataContainer that contains the documents which must be added. - Create a DataSource instance and set its Container property to the DataContainer - Call the Documents.Search method of the SearchlndexClient andpass the DataSource.State Whether the list of steps have fulfilled the requirement?

Options

  • ATRUE
  • BFALSE

How the community answered

(36 responses)
  • A
    28% (10)
  • B
    72% (26)

Why each option

The proposed steps for uploading data to an Azure Search Index are incorrect because they reference `DataContainer`, `DataSource`, and `Documents.Search`, which are not the correct components for document upload.

ATRUE

The steps are fundamentally incorrect for uploading data to an Azure Search index using the .NET SDK.

BFALSECorrect

The proposed steps are incorrect because `DataContainer`, `DataSource`, and `Documents.Search` are not used for uploading data to an Azure Search index; `Documents.Search` is specifically for querying. To upload data, one typically creates an `IndexBatch` and uses methods like `UploadDocuments`, `MergeDocuments`, or `MergeOrUploadDocuments` from the `SearchClient`.

Concept tested: Azure Search data upload process

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

Topics

#Azure Cognitive Search#SearchIndexClient#Documents.Index#IndexBatch

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice