
AWS Certified Developer - Associate
Get started today
Ultimate access to all questions.
Which set of IAM permissions is required for an AWS Lambda function to access Amazon DynamoDB, retrieve an item, update its attributes, and create the item if it doesn't exist, given access to the primary key?
Which set of IAM permissions is required for an AWS Lambda function to access Amazon DynamoDB, retrieve an item, update its attributes, and create the item if it doesn't exist, given access to the primary key?
Exam-Like
Explanation:
The correct answer is D: dynamodb:UpdateItem, dynamodb:GetItem, and dynamodb:PutItem. Here’s why each permission is necessary:
- dynamodb:GetItem: Allows the Lambda function to retrieve an item from DynamoDB.
- dynamodb:UpdateItem: Allows the Lambda function to update the attributes of an existing item.
- dynamodb:PutItem: Allows the Lambda function to create a new item if it doesn't already exist.
Combining these permissions ensures the function can retrieve, update, and create items as required.