Topic 1 Question 216
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?
dynamodb:DeleleItem dynamodb:GetItem dynamodb:PutItem
dynamodb:UpdateItem dynamodb:GetItem dynamodb:DescribeTable
dynamodb:GetRecords dynamodb:PutItem dynamodb:UpdateTable
dynamodb:UpdateItem dynamodb:GetItem dynamodb:PutItem
ユーザの投票
コメント(6)
D. dynamodb:UpdateItem, dynamodb:GetItem, and dynamodb:PutItem
Here's why:
dynamodb:GetItem: This permission allows the Lambda function to retrieve an item from DynamoDB.
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.
👍 4Claire_KMT2023/10/27- 正解だと思う選択肢: D
PutItem is to CREATE new item or replace old item with new item GetItem is to retrieve an item UpdateItem so to update the attributes
Hence answer D
👍 3didorins2023/10/27 - 正解だと思う選択肢: D
UpdateItem: Edits an existing item's attributes https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateItem.html GetItem: retrieves attributes from the Thread table https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_GetItem.html#API_GetItem_Examples PutItem: Creates a new item, or replaces an old item with a new item. https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_PutItem.html
👍 1TanTran042023/12/14
シャッフルモード