exam questions

Exam DP-420 All Questions

View all questions & answers for the DP-420 exam

Exam DP-420 topic 3 question 23 discussion

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

You plan to create an Azure Cosmos DB for NoSQL database named db1 that will contain two containers. One of the containers will contain blog posts, and the other will contain users. Each item in the blog post container will include:

• A single blog post
• The top 10 comments associated to the blog post
• The names of the users who created the blog post and the associated comments

You need to automatically update the usernames in the blog post container whenever a username in the user container changes.

What should you implement for the user container?

  • A. a stored procedure
  • B. a change feed processor
  • C. a post-trigger
  • D. a user-defined function (UDF)
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
YellowSky002
3 months, 2 weeks ago
Selected Answer: B
Between ChangeFeedProcessor and PostTrigger the difference is the Scope of the change. ChangeFeedProcessor Processes a continuous stream of changes (inserts, updates, deletes) from the Change Feed. While PostTrigger Executes within the same transaction as the operation that triggered it (create, update, or delete). In the context of this question, We want to update the container. That is why the answer is B.
upvoted 1 times
...
[Removed]
6 months, 1 week ago
Selected Answer: B
Change feed is correct
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago