Q11 Cosmos DB Domain 2 · 25–30% of exam

An Azure Function must process every document inserted into Cosmos DB. Which trigger is most appropriate?

  1. A HTTP trigger with polling
  2. B Cosmos DB trigger (change feed) (correct answer)
  3. C Timer trigger with SDK query
  4. D Service Bus trigger

Shortcut: The Cosmos DB trigger uses the change feed to invoke the function on every new/updated document. It handles checkpointing and parallel processing automatically.