🔥 40% Off Crucial Exams Memberships — This Week Only

3 days, 13 hours remaining!

Microsoft Azure Developer Associate AZ-204 Practice Question

You are building a C# Azure Functions app that must react to every insert and update in the orders container of an Azure Cosmos DB for NoSQL database named sales. The solution must scale out to multiple Functions host instances, avoid hot partitions, and guarantee that no change is missed while each change is handled by only one host instance at any time. Which approach should you use?

  • Enable Cosmos DB diagnostic logging and have the Function poll the DataPlaneRequests table for inserts and updates.

  • Subscribe the Function to Azure Event Grid events emitted by the Cosmos DB account and filter on item write operations.

  • Use the Azure Cosmos DB Change Feed Processor library with a dedicated lease container and bind the orders container as the monitored source.

  • Create a stored procedure in the orders container that queries documents by their _ts metadata every minute and invoke it from the Function.

Microsoft Azure Developer Associate AZ-204
Develop for Azure storage
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot