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.
Question
Options
- ATableOperation
- BTableBatchOperation
- CTableEntity
- DTableQuery
How the community answered
(45 responses)- A7% (3)
- B73% (33)
- C16% (7)
- D4% (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.
TableOperation is used for single entity operations, not for batching multiple records.
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.
TableEntity represents an individual data record, not the operation used to insert a batch of them.
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
Community Discussion
No community discussion yet for this question.