Bird
0
0

Which of the following is the correct syntax to specify a DynamoDB table resource ARN in an IAM policy?

easy📝 Configuration Q12 of 15
DynamoDB - Security and Access Control
Which of the following is the correct syntax to specify a DynamoDB table resource ARN in an IAM policy?
A"Resource": "arn:aws:s3:::mybucket"
B"Resource": "arn:aws:dynamodb:us-east-1:123456789012:table/MyTable"
C"Resource": "arn:aws:dynamodb:us-east-1:123456789012:table"
D"Resource": "arn:aws:dynamodb:us-east-1:123456789012:database/MyTable"
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct ARN format for DynamoDB table

    The ARN format for a DynamoDB table is: arn:aws:dynamodb:::table/.
  2. Step 2: Compare options to the correct format

    "Resource": "arn:aws:dynamodb:us-east-1:123456789012:table/MyTable" matches the correct format exactly. "Resource": "arn:aws:s3:::mybucket" is for S3, C misses table name, D uses wrong resource type.
  3. Final Answer:

    "Resource": "arn:aws:dynamodb:us-east-1:123456789012:table/MyTable" -> Option B
  4. Quick Check:

    Resource ARN for DynamoDB table = "Resource": "arn:aws:dynamodb:us-east-1:123456789012:table/MyTable" [OK]
Quick Trick: DynamoDB table ARN ends with 'table/YourTableName' [OK]
Common Mistakes:
MISTAKES
  • Using S3 ARN format instead of DynamoDB
  • Omitting the table name in ARN
  • Using 'database' instead of 'table' in ARN

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More DynamoDB Quizzes