nerdexam
Microsoft

AZ-204 · Question #169

A development team 'NPR' 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 B. TableBatchOperation. To insert a batch of records into Azure Table storage efficiently and atomically, TableBatchOperation is the correct class to use. It allows combining multiple operations on entities within the same partition key into a single transaction.

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

Question

A development team 'NPR' 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 The following snippet of code needs to be completed that would beused to insert a batch of records.___________________ will go into Slot1.

Options

  • ATableOperation
  • BTableBatchOperation
  • CTableEntity
  • DTableQuery

How the community answered

(45 responses)
  • A
    7% (3)
  • B
    73% (33)
  • C
    16% (7)
  • D
    4% (2)

Why each option

To insert a batch of records into Azure Table storage efficiently and atomically, TableBatchOperation is the correct class to use. It allows combining multiple operations on entities within the same partition key into a single transaction.

ATableOperation

TableOperation is used for single entity operations, not for batching multiple records.

BTableBatchOperationCorrect

TableBatchOperation is the correct class to use when inserting a batch of records into Azure Table storage, as it allows multiple insert, update, or delete operations on entities with the same partition key to be executed as a single atomic transaction, ensuring consistency and efficiency.

CTableEntity

TableEntity represents an individual data record, not the operation used to insert a batch of them.

DTableQuery

TableQuery is used for retrieving data from the table, not for inserting it.

Concept tested: Azure Table Storage batch operations

Source: https://learn.microsoft.com/en-us/azure/storage/tables/table-storage-how-to-use-dotnet#insert-or-merge-a-batch-of-entities

Topics

#Azure Table storage#TableBatchOperation#batch insert#.NET SDK

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice