Microsoft Azure Developer Associate AZ-204 Practice Question
You are adding support for Azure Cosmos DB transactional batch operations to a .NET 6 microservice. At runtime the service will insert an Order item, insert a related Invoice item, and update an existing Product item in a single atomic request. Which prerequisite must the implementation satisfy for the transactional batch to commit successfully?
Every operation in the batch must specify an identical ETag in the request options.
The batch must contain 50 or fewer operations and consume less than 4 MB of payload.
All items in the batch must have the same partition key value.
The container's consistency level must be set to Session or stronger before the batch executes.
A transactional batch can only be executed against items that share an identical partition key value. The SDK groups the operations by that value and sends a single request to the physical partition hosting it; if any operation uses a different partition key, the SDK throws an exception and the batch is not submitted. Matching ETags, batch size limits, or consistency-level settings do not determine whether the batch is accepted-they are evaluated only after the request is routed, or are unrelated to batch validity.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a partition key in Azure Cosmos DB?
Open an interactive chat with Bash
What happens if items in a transactional batch have different partition key values?
Open an interactive chat with Bash
Why does the SDK use the partition key to group operations in a transactional batch?
Open an interactive chat with Bash
Microsoft Azure Developer Associate AZ-204
Develop for Azure storage
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .