Bird
0
0

Consider this IAM policy snippet attached to a user:

medium📝 Predict Output Q13 of 15
AWS - Identity and Access Management
Consider this IAM policy snippet attached to a user:
{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Action": ["s3:ListBucket"],
    "Resource": ["arn:aws:s3:::example-bucket"]
  }]
}

What can this user do?
AUpload files to example-bucket
BList the contents of the example-bucket
CDelete files from example-bucket
DAccess all S3 buckets
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the policy actions

    The policy allows only the "s3:ListBucket" action on the specific bucket resource.
  2. Step 2: Determine allowed operations

    "s3:ListBucket" lets the user see the list of objects but not upload or delete.
  3. Final Answer:

    List the contents of the example-bucket -> Option B
  4. Quick Check:

    Action = s3:ListBucket means list only [OK]
Quick Trick: Check the Action field to know allowed operations [OK]
Common Mistakes:
  • Assuming upload or delete permissions from list permission
  • Thinking the policy applies to all buckets
  • Ignoring the specific resource ARN

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes