nerdexam
Microsoft

DP-420 · Question #139

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. Using an Azure Function triggered by the Cosmos DB change feed to output data to an Azure Event Hub is a valid way to make Cosmos DB data available for Stream Analytics.

Integrate an Azure Cosmos DB solution

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 for NoSQL change feed as a trigger and Azure event hub as the output. Does this meet the goal?

Options

  • AYes
  • BNo

How the community answered

(55 responses)
  • A
    80% (44)
  • B
    20% (11)

Why each option

Using an Azure Function triggered by the Cosmos DB change feed to output data to an Azure Event Hub is a valid way to make Cosmos DB data available for Stream Analytics.

AYesCorrect

Azure Stream Analytics jobs can use Azure Event Hubs as an input source. By leveraging the Cosmos DB change feed as a trigger for an Azure Function, you can capture changes from container1 in near real-time and stream them to an Event Hub. This Event Hub can then serve as a streaming input for the Azure Stream Analytics job, which can then process it as reference data or stream data as needed.

BNo

This solution is effective because Stream Analytics can consume data from Event Hubs, and the change feed with an Azure Function provides an efficient way to transfer data from Cosmos DB to an Event Hub.

Concept tested: Cosmos DB change feed integration with Event Hubs for Stream Analytics

Source: https://learn.microsoft.com/azure/cosmos-db/change-feed-functions

Topics

#Azure Cosmos DB Change Feed#Azure Functions#Azure Stream Analytics Reference Data#Data Integration

Community Discussion

No community discussion yet for this question.

Full DP-420 Practice