exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 392 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 392
Topic #: 1
[All AWS Certified Developer Associate Questions]

A developer is creating a new application for a pet store. The application will manage customer rewards points. The developer will use Amazon DynamoDB to store the data for the application. The developer needs to optimize query performance and limit partition overload before actual performance analysis.

Which option should the developer use for a partition key to meet these requirements?

  • A. A randomly generated universally unique identifier (UUID)
  • B. The customer’s full name
  • C. The date when the customer signed up for the rewards program
  • D. The name of the customer’s pet
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
a15ce96
1 year, 3 months ago
Selected Answer: A
Nothing was said about possible usage (I mean, how the data is queried). I also don't see any hints in the "rewards" domain. That's why I'd choose A... Although C is also a good option. On the other hand, imagine many users are signed up in one day. It can also impact the partitioning.
upvoted 1 times
...
TeeTheMan
1 year, 11 months ago
A is wrong because a randomly generated string isn’t useful as a partition key. How will you know what the partition key is when a customer visits the application and you need to lookup the customer’s points? The only option that makes sense is B. And customer’s full names are sufficiently unique.
upvoted 1 times
...
Drey
2 years, 5 months ago
Selected Answer: C
This is because using the sign-up date as the partition key distributes the data evenly across partitions, reducing the risk of hot partitioning, which can impact performance.
upvoted 1 times
...
pancman
2 years, 5 months ago
Selected Answer: A
A is correct
upvoted 1 times
...
breathingcloud
2 years, 5 months ago
Selected Answer: A
Its has to be unique number
upvoted 1 times
...
JagpreetLM10
2 years, 5 months ago
Selected Answer: C
Can be C . A partition key is used to determine the physical partition where the item is stored. The partition key should be chosen based on the access patterns of the data and how the data will be queried. In this scenario, the developer will likely want to query the data based on the date when the customer signed up for the rewards program, so using the date as the partition key will provide the best performance. Using a date as a partition key will also help to spread the data out over multiple partitions, avoiding partition overload.
upvoted 1 times
...
KT_Yu
2 years, 5 months ago
Selected Answer: A
The most unique and the highest cardinality
upvoted 3 times
...
Phinx
2 years, 5 months ago
Selected Answer: A
A it is
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 ...