An Azure Function using the Cosmos DB trigger receives a batch of changed documents. How many function invocations occur per batch?
- A One per document
- B One per batch of documents (correct answer)
- C One per partition
- D Configurable via maxItemsPerInvocation
Shortcut: The Cosmos DB trigger passes a batch of changed documents (IReadOnlyList<Document>) to a single function invocation. maxItemsPerInvocation controls the maximum batch size.