Complete the code to specify the DynamoDB action for reading data.
{
"Effect": "Allow",
"Action": "dynamodb:[1]",
"Resource": "*"
}The GetItem action allows reading data from DynamoDB.
Complete the code to specify the resource ARN for a DynamoDB table named 'Users'.
"Resource": "arn:aws:dynamodb:us-east-1:123456789012:table/[1]"
The ARN must include the exact table name, which is Users in this case.
Fix the error in the IAM policy action to allow scanning a DynamoDB table.
"Action": "dynamodb:[1]"
The correct action to scan a DynamoDB table is Scan. 'ScanTable' is invalid.
Fill both blanks to allow updating and deleting items in a DynamoDB table.
{
"Effect": "Allow",
"Action": ["dynamodb:[1]", "dynamodb:[2]"],
"Resource": "*"
}To update and delete items, use UpdateItem and DeleteItem actions.
Fill all three blanks to create a policy allowing listing tables, reading an item, and writing an item.
{
"Effect": "Allow",
"Action": ["dynamodb:[1]", "dynamodb:[2]", "dynamodb:[3]"],
"Resource": "*"
}This policy allows listing tables (ListTables), reading items (GetItem), and writing items (PutItem).