Complete the code to specify the action allowed by the IAM policy.
{
"Effect": "Allow",
"Action": "[1]",
"Resource": "*"
}The dynamodb:PutItem action allows writing data to a DynamoDB table, which is relevant for protecting data access with IAM policies.
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 resource ARN must match the DynamoDB table name you want to protect. Here, it is Users.
Fix the error in the IAM policy effect value.
"Effect": "[1]"
The correct value for the effect in IAM policies is Allow. Other values cause errors.
Fill both blanks to complete the condition that restricts access to a specific IP address.
"Condition": { "IpAddress": { "aws:SourceIp": "[1]" }, "Bool": { "aws:SecureTransport": "[2]" } }
The IpAddress condition restricts access to the IP range 203.0.113.0/24. The Bool condition requires aws:SecureTransport to be true to enforce HTTPS.
Fill all three blanks to complete the IAM policy statement allowing read access only to a DynamoDB table named 'Inventory'.
{
"Effect": "[1]",
"Action": "[2]",
"Resource": "arn:aws:dynamodb:us-west-2:987654321098:table/[3]"
}The policy must Allow the dynamodb:GetItem action on the Inventory table to grant read-only access.