nerdexam
Microsoft

AZ-204 · Question #166

In the Azure Search service a team 'XPN' has created an Index. Ryan has toupload data into the Index. He proposed the following steps to carryout from his .Net program: - Create a SearchServiceClient

The correct answer is B. FALSE. The proposed steps for uploading data to an Azure Search index from a .NET program are incorrect because they describe setting up a data source for an indexer to pull data, rather than directly pushing documents using the SearchClient API methods like UploadDocuments.

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

Question

In the Azure Search service a team 'XPN' has created an Index. Ryan has toupload data into the Index. He proposed the following steps to carryout from his .Net program: - Create a SearchServiceClient 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. - Set the DataSource property of the SearchServiceCIientState Whether the requirement is being fulfilled by the listed steps?

Options

  • ATRUE
  • BFALSE

How the community answered

(29 responses)
  • A
    24% (7)
  • B
    76% (22)

Why each option

The proposed steps for uploading data to an Azure Search index from a .NET program are incorrect because they describe setting up a data source for an indexer to pull data, rather than directly pushing documents using the SearchClient API methods like UploadDocuments.

ATRUE

The steps are fundamentally incorrect for directly uploading documents from a .NET application; they confuse the process of setting up an indexer with the process of pushing individual documents.

BFALSECorrect

The proposed steps incorrectly describe how to upload data to an Azure AI Search index; they outline the creation of a DataSource for an Indexer to pull data, whereas direct data upload from a .NET program requires using the SearchClient's UploadDocuments, MergeDocuments, or MergeOrUploadDocuments methods to push documents into the index.

Concept tested: Azure AI Search data upload methods (.NET SDK)

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

Topics

#Azure Cognitive Search#SearchIndexClient#index upload#.NET SDK

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice