Bird
0
0

Which of the following is the correct JSON structure for an IAM policy statement?

easy📝 Configuration Q3 of 15
AWS - Identity and Access Management
Which of the following is the correct JSON structure for an IAM policy statement?
A{"Action": "Allow", "Effect": "s3:PutObject", "Resource": "example-bucket"}
B{"Allow": "Effect", "Action": "s3:PutObject", "Resource": "example-bucket"}
C{"Effect": "Allow", "Resource": "s3:PutObject", "Action": "arn:aws:s3:::example-bucket/*"}
D{"Effect": "Allow", "Action": "s3:PutObject", "Resource": "arn:aws:s3:::example-bucket/*"}
Step-by-Step Solution
Solution:
  1. Step 1: Check the correct key-value pairs

    The correct keys are "Effect", "Action", and "Resource" with proper values. {"Effect": "Allow", "Action": "s3:PutObject", "Resource": "arn:aws:s3:::example-bucket/*"} matches this format.
  2. Step 2: Identify incorrect key orders or values in other options

    Options B, C, and D mix keys and values incorrectly or swap values, making them invalid.
  3. Final Answer:

    {"Effect": "Allow", "Action": "s3:PutObject", "Resource": "arn:aws:s3:::example-bucket/*"} -> Option D
  4. Quick Check:

    Correct keys and values = {"Effect": "Allow", "Action": "s3:PutObject", "Resource": "arn:aws:s3:::example-bucket/*"} [OK]
Quick Trick: Use "Effect", "Action", "Resource" keys in that order [OK]
Common Mistakes:
MISTAKES
  • Swapping keys and values
  • Using incorrect key names
  • Misplacing ARN and action strings

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes