Question
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
You have an Azure Cosmos DB for NoSQL account named account1 that uses autoscale throughput.
You need to run an Azure function when the normalized request units per second for a container in account1 exceeds a specific value.
Solution: You configure the function to have an Azure Cosmos DB trigger.
Does this meet the goal?
- A. Yes
- B. No Correct
Explanation
An Azure Cosmos DB trigger for Azure Functions fires on inserts and updates read from a container's change feed. It knows nothing about throughput metrics such as normalized RU consumption, so it cannot fire when that value exceeds a threshold; an Azure Monitor metric alert is needed instead.