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 155 discussion

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

A gaming application stores scores for players in an Amazon DynamoDB table that has four attributes user_id, user_name, user_score and user_rank. The users are allowed to update their names only. A user is authenticated by web identity federation.

Which set of conditions should be added in the policy attached to the role for the dynamodb:PutItem API call?

  • A.
  • B.
  • C.
  • D.
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
xdkonorek2
1 year, 5 months ago
Selected Answer: C
"If you use dynamodb:Attributes, you must specify the names of all of the primary key and index key attributes for the table and any secondary indexes that are listed in the policy. Otherwise, DynamoDB can't use these key attributes to perform the requested action." that makes sense, can't update user_name without user_id
upvoted 1 times
...
rcaliandro
1 year, 11 months ago
Selected Answer: A
A is the correct answer. The Leading key allows users to access only the items where the partition key value matches their user ID. And as Attribute value we set user_name because we want that the userID is able to update only his username
upvoted 2 times
...
shahs10
2 years, 2 months ago
Selected Answer: A
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/specifying-conditions.html
upvoted 1 times
...
Groot2
2 years, 2 months ago
The question "Which set of conditions should be added in the policy attached to the role for the dynamodb:PutItem API call?" shouldn't ask about UpdateItem? Is it a typo or is it ok? If it is all right, then why?
upvoted 1 times
...
pancman
2 years, 3 months ago
This question was on the exam today (Feb 2023)
upvoted 3 times
Dun6
2 years, 2 months ago
Was this the new DVA-CO2 Exam?
upvoted 3 times
...
...
pancman
2 years, 3 months ago
Selected Answer: A
A is correct
upvoted 1 times
...
Phinx
2 years, 4 months ago
Selected Answer: A
A it is.
upvoted 2 times
...
sichilam
2 years, 4 months ago
A is correct
upvoted 2 times
...
fswklotto1
2 years, 6 months ago
Selected Answer: A
A is correct
upvoted 3 times
...
k1kavi1
2 years, 6 months ago
Choosing A
upvoted 2 times
...
CloudHandsOn
2 years, 6 months ago
I choose A, the identifier is the user id, and attribute that can be changed is the user_name
upvoted 2 times
...
kapil206001
2 years, 6 months ago
A https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/specifying-conditions.html
upvoted 3 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 ...