exam questions

Exam DP-420 All Questions

View all questions & answers for the DP-420 exam

Exam DP-420 topic 3 question 8 discussion

Actual exam question from Microsoft's DP-420
Question #: 8
Topic #: 3
[All DP-420 Questions]

You have an Azure Cosmos DB Core (SQL) API 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?

  • A. only the changed properties and the system-defined properties of the updated items
  • B. only the partition key and the changed properties of the updated items
  • C. all the properties of the original items and the updated items
  • D. all the properties of the updated items
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
DudeWheresMyCar
Highly Voted 2 years, 4 months ago
Answer is D as all properties are sent to the change feed. This is testable by creating an Azure Function with CosmosDB input trigger.
upvoted 6 times
...
Garyn
Most Recent 1 year, 4 months ago
When you create an Azure function with a trigger on the change feed of an Azure Cosmos DB Core (SQL) API container, the Azure function receives the following: B. only the partition key and the changed properties of the updated items. The change feed provides information about changes made to the items in the container. Specifically, it includes the partition key and the properties of the updated items. This allows the Azure function to process the changes, including the partition key and the specific properties that were modified, without needing to retrieve all properties of the original items. This selective information is beneficial for efficiently processing changes and reacting to updates in real-time without the need to access the entire original item, which can help minimize processing overhead and improve performance.
upvoted 1 times
xRiot007
1 year ago
Answer is D - all properties are retrieved using the change feed Change feed in Azure Cosmos DB is a persistent record of changes to a container in the order they occur. Change feed support in Azure Cosmos DB works by listening to an Azure Cosmos DB container for any changes. It then outputs the sorted list of documents that were changed in the order in which they were modified. https://learn.microsoft.com/en-us/azure/cosmos-db/change-feed
upvoted 1 times
...
...
Feanorich
1 year, 5 months ago
Selected Answer: D
It is D
upvoted 2 times
...
akash211
1 year, 6 months ago
Selected Answer: D
It should be D only.
upvoted 1 times
...
arnabdt
1 year, 10 months ago
Selected Answer: D
D is correct
upvoted 1 times
...
roxsauromech
2 years, 1 month ago
Selected Answer: D
D is the correct answer
upvoted 3 times
...
khushbu123
2 years, 4 months ago
Selected Answer: D
It should be D
upvoted 4 times
...
TimSss
2 years, 4 months ago
Selected Answer: D
Wrong. D is correct, entire doc is passed
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...