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.
Question
Options
- AExecuteBatch
- BExecute
- CInsert
- DInsertOrMerge
How the community answered
(35 responses)- A80% (28)
- B3% (1)
- C6% (2)
- D11% (4)
Why each option
To efficiently insert multiple records into Azure Table storage, the `ExecuteBatch` method is used with a `TableBatchOperation` object.
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.
`Execute` is a method on `TableOperation` and is used for single entity operations, not for executing batch operations.
`Insert` is an operation type used with `TableOperation` for adding a single entity, not a method for executing a batch of operations.
`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
Community Discussion
No community discussion yet for this question.