nerdexam
Microsoft

AZ-204 · Question #170

A development team 'XRP' is developing an application. The application will be storing its data in Azure Table storage. Below are the fields that are going to be stored in the table: - Region…

The correct answer is A. ExecuteBatch. To efficiently insert multiple records into Azure Table storage, the ExecuteBatch method is used with a TableBatchOperation object.

Submitted by alyssa_d· Mar 30, 2026Develop for Azure storage

Question

A development team 'XRP' is developing an application. The application will be storing its data in Azure Table storage. Below are the fields that are going to be stored in the table: - Region - Email address - Phone number To insert a batch of records ______________ snippet of code needs to be completed that would be used .

Options

  • AExecuteBatch
  • BExecute
  • CInsert
  • DInsertOrMerge

How the community answered

(35 responses)
  • A
    80% (28)
  • B
    3% (1)
  • C
    6% (2)
  • D
    11% (4)

Why each option

To efficiently insert multiple records into Azure Table storage, the `ExecuteBatch` method is used with a `TableBatchOperation` object.

AExecuteBatchCorrect

The `ExecuteBatch` method of the `CloudTable` client is specifically designed to perform batch operations, such as inserting multiple entities in a single request, against Azure Table storage. This approach improves efficiency and reduces transactional costs compared to inserting entities individually.

BExecute

`Execute` is a method on `TableOperation` and is used for single entity operations, not for executing batch operations.

CInsert

`Insert` is an operation type used with `TableOperation` for adding a single entity, not a method for executing a batch of operations.

DInsertOrMerge

`InsertOrMerge` is an operation type for `TableOperation` that inserts an entity if it doesn't exist or merges it if it does, used for single entity operations, not for executing a batch.

Concept tested: Azure Table storage batch operations

Source: https://learn.microsoft.com/en-us/azure/cosmos-db/table/table-storage-how-to-use-dotnet?tabs=azure-cli%2Cwindows#add-a-batch-of-entities-to-a-table

Topics

#Azure Table storage#batch operations#ExecuteBatch#.NET SDK

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice