exam questions

Exam DP-201 All Questions

View all questions & answers for the DP-201 exam

Exam DP-201 topic 5 question 2 discussion

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

You need to design a sharding strategy for the Planning Assistance database.
What should you recommend?

  • A. a list mapping shard map on the binary representation of the License Plate column
  • B. a range mapping shard map on the binary representation of the speed column
  • C. a list mapping shard map on the location column
  • D. a range mapping shard map on the time column
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Data used for Planning Assistance must be stored in a sharded Azure SQL Database.
A shard typically contains items that fall within a specified range determined by one or more attributes of the data. These attributes form the shard key (sometimes referred to as the partition key). The shard key should be static. It shouldn't be based on data that might change.
Reference:
https://docs.microsoft.com/en-us/azure/architecture/patterns/sharding

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
elimey
3 years, 10 months ago
I agree with C
upvoted 1 times
...
Dhaval_Azure
3 years, 11 months ago
shard key should be static "The shard key should be static. It shouldn't be based on data that might change." https://docs.microsoft.com/en-us/azure/architecture/patterns/sharding
upvoted 1 times
...
BigMF
3 years, 11 months ago
I believe that C is the best option: A) A binary representation of the license plate could cause problems due to the non-numeric characters in the plate number. B) Speeds will more often than not be similar leading to hotspots D) Rush hour traffic will cause hotspots as well if you use timespans Yes, some locations may have significantly more traffic than others but I think the likelihood of the differences being so great as to cause hotspots is minimal because real-world logic tells me that the planners are not going to put sensors in low-traffic areas.
upvoted 4 times
Dhaval_Azure
3 years, 11 months ago
I agree as "The shard key should be static. It shouldn't be based on data that might change." https://docs.microsoft.com/en-us/azure/architecture/patterns/sharding
upvoted 1 times
...
...
ZodiaC
3 years, 12 months ago
Is it really D?
upvoted 1 times
...
dbdev
4 years ago
I think the D is correct answer. https://docs.microsoft.com/en-us/azure/azure-sql/database/elastic-scale-shard-map-management The binary representation of plate number is not supported among available data types for sharding keys. Time range mapping is more appropriate solution.
upvoted 2 times
BobFar
4 years ago
date and time columns are not good options for sharding
upvoted 1 times
...
...
Plhiwndkro
4 years ago
I would go for D: https://docs.microsoft.com/en-us/azure/azure-sql/database/elastic-scale-shard-map-management
upvoted 1 times
...
Ous01
4 years ago
I would go with C. Thoughts?
upvoted 4 times
MMM777
3 years, 12 months ago
C: Yes a list based mapping where sensors in similar locations are sharded together makes sense. You want to see the sensors over time in that area. Lat/Long would be mapped to shards. Time-based will cause hot-spots.
upvoted 2 times
...
...
skbi570
4 years ago
Wouldn't D be a better choice here?
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 ...