Bird
0
0

Given this policy snippet:

medium📝 Predict Output Q4 of 15
AWS - Identity and Access Management
Given this policy snippet:
{"Effect": "Allow", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::example-bucket/*"}

What will happen if a user tries to delete an object in example-bucket?
AThe delete action is allowed
BThe delete action is denied
CThe delete action is allowed only if explicitly allowed elsewhere
DThe delete action is allowed by default
Step-by-Step Solution
Solution:
  1. Step 1: Analyze allowed actions in policy

    Only s3:GetObject is allowed, no delete permission.
  2. Step 2: Understand default deny behavior

    Delete action is not allowed explicitly, so it is denied by default.
  3. Final Answer:

    Delete action is denied -> Option B
  4. Quick Check:

    Unallowed action = Denied [OK]
Quick Trick: Only explicitly allowed actions are permitted; others denied [OK]
Common Mistakes:
  • Assuming unmentioned actions are allowed
  • Confusing GetObject with DeleteObject
  • Ignoring default deny rule

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes