BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft DP-420 Exam - Topic 2 Question 60 Discussion

Posted by Ceola on Mar 19, 2025 at 06:13 PM

You are designing an Azure Cosmos DB Core (SQL) API solution to store data from IoT devices. Writes from the devices will be occur every second.

The following is a sample of the data.

You need to select a partition key that meets the following requirements for writes:

Minimizes the partition skew

Avoids capacity limits

Avoids hot partitions

What should you do?

Get Premium DP-420 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
55 comments · newest first
KA
Karan 11 months ago
Wait, isn't using deviceId alone enough? Not sure about the random number.
NO
Nobuko 11 months ago
I think option D is the best choice! Random number helps distribute writes.
SK
Skye 12 months ago
Synthetic keys are a smart move here. DeviceId + sensor value sounds solid.
CA
Carman 12 months ago
Definitely avoid timestamp; it creates skew with frequent writes.
LI
Lili 12 months ago
Using timestamp as a partition key can lead to hot partitions.
AL
Aleta 1 year ago
I recall a practice question where we used a combination of deviceId and another attribute. Maybe deviceId with deviceManufacturer could work, but I need to think more about the write patterns.
CA
Candra 1 year ago
I feel like using deviceId with a random number could be a good option to minimize partition skew, but I wonder if it would really help with avoiding hot partitions.
RU
Ruth 1 year ago
I think creating a synthetic key with deviceId and sensor1Value could help distribute the writes better, but I'm not entirely sure if it would avoid capacity limits.
NA
Nakisha 1 year ago
I remember we discussed partition keys in class, and using a timestamp might lead to hot partitions since all writes would cluster around the same time.
NA
Naomi 1 year ago
Using deviceId and sensor1Value seems like a good way to distribute the writes evenly and avoid capacity limits. I think that's the way to go.
RI
Ria 1 year ago
I'm a bit confused on the best approach here. Timestamp might work, but I'm not sure if it would avoid hot partitions. I'll need to review the requirements again.
LA
Launa 1 year ago
Okay, let's see. Minimizing partition skew and avoiding hot partitions are key. I'm leaning towards using a synthetic key with deviceId and a random number.
RO
Romana 1 year ago
Hmm, this seems like a tricky one. I'll need to think carefully about the partition key requirements.
LA
Lai 2 years ago
I guess the partition key should be the 'DeviceID' and the 'Sensor Value'... you know, to keep things 'well-partitioned'!
BR
Brynn 1 year ago
↳ replying to Lai
D) Create a new synthetic key that contains deviceId and a random number.
AR
Arlyne 1 year ago
↳ replying to Lai
C) Create a new synthetic key that contains deviceId and deviceManufacturer.
JO
Josephine 1 year ago
↳ replying to Lai
B) Create a new synthetic key that contains deviceId and sensor1Value.
WI
Wilbert 1 year ago
↳ replying to Lai
A) Use timestamp as the partition key.
IS
Isreal 2 years ago
Using a synthetic key that includes deviceId and a random number is a creative approach, but it could make it harder to query the data later on.
AL
Allene 1 year ago
↳ replying to Isreal
I agree, using sensor1Value in the synthetic key can help distribute the data evenly.
TH
Thomasena 1 year ago
↳ replying to Isreal
That sounds like a good option to avoid hot partitions.
JO
Jospeh 1 year ago
↳ replying to Isreal
B) Create a new synthetic key that contains deviceId and sensor1Value.
KE
Kerry 2 years ago
The option to create a synthetic key with deviceId and deviceManufacturer is interesting, but it might not be the best choice as it may not minimize the partition skew.
VE
Veronika 1 year ago
↳ replying to Kerry
C) Create a new synthetic key that contains deviceId and deviceManufacturer.
CO
Cory 1 year ago
↳ replying to Kerry
B) Create a new synthetic key that contains deviceId and sensor1Value.
BU
Bulah 2 years ago
↳ replying to Kerry
A) Use timestamp as the partition key.
MA
Marylin 2 years ago
Creating a synthetic key that includes the deviceId and sensor1Value sounds promising, as it would distribute the data more evenly and avoid hot partitions.
CH
Charisse 1 year ago
↳ replying to Marylin
Creating a synthetic key with a random number might not evenly distribute the data.
CO
Coletta 2 years ago
↳ replying to Marylin
Timestamp might not be the best choice as it could lead to hot partitions.
FR
France 2 years ago
↳ replying to Marylin
Using a synthetic key with deviceId and sensor1Value could help with that.
HO
Hoa 2 years ago
↳ replying to Marylin
Sensors data should be evenly distributed to avoid hot partitions.
DO
Dominga 2 years ago
Using the timestamp as the partition key might seem like a good idea, but it could lead to hot partitions and uneven distribution of data, which would impact the performance of the Azure Cosmos DB solution.
JU
Juan 2 years ago
↳ replying to Dominga
C) Create a new synthetic key that contains deviceId and deviceManufacturer.
CO
Corazon 2 years ago
↳ replying to Dominga
B) Create a new synthetic key that contains deviceId and sensor1Value.
TA
Tamar 2 years ago
I disagree, I think creating a new synthetic key with deviceId and sensor1Value would be a better option to avoid capacity limits.
CA
Carla 2 years ago
I agree with Angella, using timestamp as the partition key will help minimize partition skew.
BE
Belen 2 years ago
That's a good point, but I still think D is the correct answer based on the command.
TY
Tyra 2 years ago
I'm just wondering if the exam will ask us to actually run that PowerShell command and see what happens. That would be a real test of our knowledge!
AR
Artie 1 year ago
↳ replying to Tyra
D) Create a new synthetic key that contains deviceId and a random number.
CA
Candra 1 year ago
↳ replying to Tyra
C) Create a new synthetic key that contains deviceId and deviceManufacturer.
AM
Amira 1 year ago
↳ replying to Tyra
B) Create a new synthetic key that contains deviceId and sensor1Value.
SH
Sheridan 1 year ago
↳ replying to Tyra
A) Use timestamp as the partition key.
LY
Lyla 1 year ago
↳ replying to Tyra
D) Create a new synthetic key that contains deviceId and a random number.
CA
Casey 1 year ago
↳ replying to Tyra
C) Create a new synthetic key that contains deviceId and deviceManufacturer.
TA
Taryn 2 years ago
↳ replying to Tyra
B) Create a new synthetic key that contains deviceId and sensor1Value.
FR
Franklyn 2 years ago
↳ replying to Tyra
A) Use timestamp as the partition key.
LY
Lyndia 2 years ago
Haha, multi-region writes? In your dreams! This is a simple failover command, not some advanced configuration.
AN
Angella 2 years ago
I think we should use timestamp as the partition key to avoid hot partitions.
FR
Francisca 2 years ago
But wouldn't that also mean that the account will be unavailable for writes during the change?
SO
Solange 2 years ago
Nah, I don't think the throughput will increase. That command is probably just changing the failover settings, not the provisioned capacity.
DO
Dottie 2 years ago
Hold up, are you sure that's not going to make the account unavailable for writes? I thought that was one of the potential side effects.
MA
Mable 2 years ago
The manual failover is definitely the effect of running that command. I remember learning about that in my Azure Cosmos DB training.
KA
Kasandra 2 years ago
↳ replying to Mable
C) Create a new synthetic key that contains deviceId and deviceManufacturer.
SH
Shaquana 2 years ago
↳ replying to Mable
B) Create a new synthetic key that contains deviceId and sensor1Value.
TY
Ty 2 years ago
↳ replying to Mable
A) Use timestamp as the partition key.
0/2000 characters

Save Cancel