Bird
0
0

Analyze the following IAM policy snippet:

medium📝 Predict Output Q4 of 15
DynamoDB - Security and Access Control
Analyze the following IAM policy snippet:
{
  "Effect": "Allow",
  "Action": ["dynamodb:PutItem", "dynamodb:DeleteItem"],
  "Resource": "arn:aws:dynamodb:us-west-2:123456789012:table/Customers"
}

Which DynamoDB operations does this policy permit?
AOnly reading items from the Customers table
BFull access to all DynamoDB tables in the account
CUpdating items in the Customers table
DAdding and removing items from the Customers table
Step-by-Step Solution
Solution:
  1. Step 1: Identify the Actions

    The policy specifies "dynamodb:PutItem" and "dynamodb:DeleteItem" which correspond to adding and deleting items respectively.
  2. Step 2: Check the Resource

    The resource is limited to the "Customers" table in the us-west-2 region, so only that table is affected.
  3. Final Answer:

    Adding and removing items from the Customers table -> Option D
  4. Quick Check:

    Actions match adding/removing items, resource is specific [OK]
Quick Trick: Actions define allowed operations, Resource limits scope [OK]
Common Mistakes:
MISTAKES
  • Assuming 'PutItem' allows reading items
  • Confusing 'DeleteItem' with updating items
  • Ignoring the Resource ARN specificity

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More DynamoDB Quizzes