exam questions

Exam DP-420 All Questions

View all questions & answers for the DP-420 exam

Exam DP-420 topic 3 question 2 discussion

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

The following is a sample of a document in orders.

The orders container uses customerId as the partition key.
You need to provide a report of the total items ordered per month by item type. The solution must meet the following requirements:
✑ Ensure that the report can run as quickly as possible.
✑ Minimize the consumption of request units (RUs).
What should you do?

  • A. Configure the report to query orders by using a SQL query.
  • B. Configure the report to query a new aggregate container. Populate the aggregates by using the change feed.
  • C. Configure the report to query orders by using a SQL query through a dedicated gateway.
  • D. Configure the report to query a new aggregate container. Populate the aggregates by using SQL queries that run daily.
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
grada
Highly Voted 2 years, 3 months ago
Selected Answer: B
After processing items in the change feed, you can build a materialized view and persist aggregated values back in Azure Cosmos DB. If you're using Azure Cosmos DB to build a game, you can, for example, use change feed to implement real-time leaderboards based on scores from completed games. https://docs.microsoft.com/en-us/azure/cosmos-db/sql/change-feed-design-patterns#high-availability
upvoted 10 times
...
YellowSky002
Most Recent 3 months ago
Selected Answer: B
For most scenarios, using the change feed to populate aggregates in Cosmos DB is the more RU-efficient approach. It allows you to process changes incrementally, update aggregates in real-time, and avoid the overhead of full scans. However, consider your specific data volume, change frequency, and aggregate complexity to choose the most appropriate strategy.
upvoted 1 times
...
Blubb1860
9 months, 4 weeks ago
Selected Answer: B
B is correct, no additional SQL queries necessary
upvoted 1 times
...
comoon
1 year, 1 month ago
Selected Answer: D
The answer is D
upvoted 1 times
...
azuredemo2022three
1 year, 4 months ago
Selected Answer: B
upvoted 2 times
...
[Removed]
1 year, 5 months ago
Selected Answer: B
Option D suggests populating the aggregates by using SQL queries that run daily. While this may reduce the RU consumption during querying, it may not necessarily minimize RU consumption overall. Additionally, this approach may result in stale data since the aggregates are only updated once a day. The best approach to minimize RU consumption and ensure the report runs as quickly as possible is to use the change feed to populate the aggregates in real-time, as suggested in option B. This way, the aggregates are always up-to-date, and the report can be generated quickly and with minimal RU consumption.
upvoted 3 times
...
BOT_123
1 year, 9 months ago
Selected Answer: B
B Is Correct
upvoted 2 times
...
TimSss
2 years ago
Selected Answer: D
I would go with D, we need to minimize RU, so we run the job daily which should be fine for these types of reports (using monthly data). Using the change feed costs much more RU.
upvoted 4 times
...
remz
2 years, 2 months ago
Selected Answer: B
B Is Correct
upvoted 2 times
...
Gall
2 years, 2 months ago
Selected Answer: D
I would go with D, as we need to reduce RU. An additional container writes costs RU and the change-feed will be updated every time a new item appears.
upvoted 2 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