AWS Certified Developer – Associate — Question 140
A game stores user game data in an Amazon DynamoDB table. Individual users should not have access to other users' game data.
How can this be accomplished?
Answer options
- A. Encrypt the game data with individual user keys.
- B. Restrict access to specific items based on certain primary key values.
- C. Stage data in SQS queues to inject metadata before accessing DynamoDB.
- D. Read records from DynamoDB and discard irrelevant data client-side.
Correct answer: B
Explanation
The correct answer is B because restricting access based on primary key values ensures that users can only access their own data in the DynamoDB table. Option A, while it enhances security, does not restrict access at the database level. Option C does not relate to user access control, and option D does not prevent access to other users' data, as it relies on client-side filtering.