DVA-C02 · Question #231
A developer is working on an AWS Lambda function that accesses Amazon DynamoDB. The Lambda function must retrieve an item and update some of its attributes, or create the item if it does not exist. Th
The correct answer is D. dynamodb:UpdateItem. dynamodb:GetItem: This permission allows the Lambda function to retrieve an item from dynamodb:UpdateItem: This permission allows the Lambda function to update the attributes of an item in DynamoDB. dynamodb:PutItem: This permission allows the Lambda function to create a new item
Question
A developer is working on an AWS Lambda function that accesses Amazon DynamoDB. The Lambda function must retrieve an item and update some of its attributes, or create the item if it does not exist. The Lambda function has access to the primary key. Which IAM permissions should the developer request for the Lambda function to achieve this functionality?
Options
- Adynamodb:DeleleItem
- Bdynamodb:UpdateItem
- Cdynamodb:GetRecords
- Ddynamodb:UpdateItem
How the community answered
(20 responses)- A10% (2)
- C5% (1)
- D85% (17)
Explanation
dynamodb:GetItem: This permission allows the Lambda function to retrieve an item from dynamodb:UpdateItem: This permission allows the Lambda function to update the attributes of an item in DynamoDB. dynamodb:PutItem: This permission allows the Lambda function to create a new item if it doesn't already exist in the DynamoDB table.
Community Discussion
No community discussion yet for this question.