DP-420 · Question #21
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…
The correct answer is A. Yes. The answer is Yes. This solution correctly leverages the Azure Cosmos DB change feed as the trigger for an Azure Function. Every time a document in container1 is inserted or updated, the change feed fires the function, which then writes the event to Azure Event Hubs. Azure…
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. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You have a container named container1 in an Azure Cosmos DB Core (SQL) API account. You need to make the contents of container1 available as reference data for an Azure Stream Analytics job. Solution: You create an Azure function that uses Azure Cosmos DB Core (SQL) API change feed as a trigger and Azure event hub as the output. Does this meet the goal?
Options
- AYes
- BNo
How the community answered
(21 responses)- A76% (16)
- B24% (5)
Explanation
The answer is Yes. This solution correctly leverages the Azure Cosmos DB change feed as the trigger for an Azure Function. Every time a document in container1 is inserted or updated, the change feed fires the function, which then writes the event to Azure Event Hubs. Azure Stream Analytics natively supports Azure Event Hubs as a streaming input source. This creates a live, event-driven pipeline that keeps Stream Analytics continuously updated with the latest state of container1. Unlike the batch pipeline approaches in Questions 6 and 7, this architecture provides near-real-time data delivery. The change feed trigger ensures no changes are missed, and Event Hubs provides the reliable, ordered streaming interface that Stream Analytics is designed to consume.
Topics
Community Discussion
No community discussion yet for this question.