nerdexam
Microsoft

DP-420 · Question #82

You have an Azure Cosmos DB for NoSQL account. The change feed is enabled on a container named invoice. You create an Azure function that has a trigger on the change feed. What is received by the…

The correct answer is D. all the properties of the updated items. The Azure Cosmos DB change feed publishes the full, current state of a document after it has been created or modified - meaning it delivers all properties of the updated item. The change feed does not deliver deltas (only changed properties), it does not include the original…

Integrate an Azure Cosmos DB solution

Question

You have an Azure Cosmos DB for NoSQL account. The change feed is enabled on a container named invoice. You create an Azure function that has a trigger on the change feed. What is received by the Azure function?

Options

  • Aonly the changed properties and the system-defined properties of the updated items
  • Bonly the partition key and the changed properties of the updated items
  • Call the properties of the original items and the updated items
  • Dall the properties of the updated items

How the community answered

(35 responses)
  • B
    6% (2)
  • C
    3% (1)
  • D
    91% (32)

Explanation

The Azure Cosmos DB change feed publishes the full, current state of a document after it has been created or modified - meaning it delivers all properties of the updated item. The change feed does not deliver deltas (only changed properties), it does not include the original pre-change version of the item, and it does not limit the payload to just system or partition key properties. Functions triggered by the change feed receive complete documents, which is why the change feed is well-suited for event-driven scenarios where downstream consumers need the full item context.

Topics

#Azure Cosmos DB#Change Feed#Azure Functions#Data Integration

Community Discussion

No community discussion yet for this question.

Full DP-420 Practice