Bird
0
0

Which Resource ARN pattern correctly enforces this?

hard🚀 Application Q8 of 15
DynamoDB - Security and Access Control
You want to create an IAM policy that permits a user to perform any DynamoDB action on all tables in your AWS account but only within the 'eu-central-1' region. Which Resource ARN pattern correctly enforces this?
A"arn:aws:dynamodb:eu-central-1:123456789012:table/*"
B"arn:aws:dynamodb:*:123456789012:table/*"
C"arn:aws:dynamodb:eu-central-1:*:table/*"
D"arn:aws:dynamodb:eu-central-1:123456789012:table/MyTable"
Step-by-Step Solution
Solution:
  1. Step 1: Understand ARN Components

    ARN format: arn:partition:service:region:account-id:resource
  2. Step 2: Region Restriction

    To restrict to 'eu-central-1', the region field must be exactly 'eu-central-1'.
  3. Step 3: Account and Resource

    Account ID must be specified (123456789012), and resource uses wildcard '*' to include all tables.
  4. Step 4: Evaluate Options

    "arn:aws:dynamodb:eu-central-1:123456789012:table/*" matches all tables in 'eu-central-1' for the account; others either wildcard region or wrong account.
  5. Final Answer:

    "arn:aws:dynamodb:eu-central-1:123456789012:table/*" -> Option A
  6. Quick Check:

    Region and account must be exact, resource wildcard for all tables [OK]
Quick Trick: Specify exact region and account in ARN to restrict scope [OK]
Common Mistakes:
MISTAKES
  • Using '*' for region to restrict by region
  • Omitting account ID or using wildcard incorrectly
  • Specifying a single table instead of all tables

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More DynamoDB Quizzes