Bird
0
0

A user cannot write to a DynamoDB table despite having an IAM policy with "dynamodb:PutItem" allowed. What could be wrong?

medium📝 Debug Q7 of 15
DynamoDB - Security and Access Control
A user cannot write to a DynamoDB table despite having an IAM policy with "dynamodb:PutItem" allowed. What could be wrong?
AThe table is empty
BThe user is trying to read instead of write
CThe policy's resource ARN does not match the table name
DThe policy has "Effect": "Deny" for PutItem
Step-by-Step Solution
Solution:
  1. Step 1: Verify resource ARN in IAM policy

    If the ARN does not match the table, permission is not granted.
  2. Step 2: Exclude other options

    Reading instead of writing or deny effect would cause errors, but question states policy allows PutItem. Table emptiness does not affect writes.
  3. Final Answer:

    The policy's resource ARN does not match the table name -> Option C
  4. Quick Check:

    Resource ARN mismatch blocks permission = D [OK]
Quick Trick: Resource ARN must match table for permission to apply [OK]
Common Mistakes:
MISTAKES
  • Ignoring resource ARN in policy
  • Confusing read and write actions
  • Thinking table emptiness blocks writes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More DynamoDB Quizzes