SAA-C03 practice question · Design Secure Architectures
An IAM user has an identity-based policy that allows s3:GetObject on a bucket, but the bucket's resource-based policy…
An IAM user has an identity-based policy that allows s3:GetObject on a bucket, but the bucket's resource-based policy explicitly denies access to that same user. What is the result when the user attempts to read an object?
- AAccess is denied
- BAccess is allowed, because the identity-based policy explicitly grants it
- CThe two policies cancel out, resulting in the account's default behavior of implicit allow
- DAccess depends on which policy was created most recently
Show the answer and explanation
Correct answer: A) Access is denied
An explicit Deny in any applicable policy always overrides an Allow, regardless of where the Allow comes from.
Why each option is right or wrong
- A) Correct. In IAM policy evaluation, an explicit Deny in any applicable policy (identity-based or resource-based) always overrides an Allow elsewhere — the explicit deny wins.
- B) Incorrect. This ignores the explicit deny in the resource-based policy, which takes precedence over any Allow.
- C) Incorrect. IAM's default is implicit deny, not implicit allow, and an explicit Deny doesn't 'cancel out' — it always wins outright.
- D) Incorrect. Policy evaluation order isn't based on creation timestamps — it follows a fixed evaluation logic where explicit deny always wins.
- Exam domain
- Design Secure Architectures · 30% of SAA-C03
- Question type
- Multiple choice (one answer)
Related SAA-C03 questions
- A VPC needs stateful, managed network firewalling with the ability to filter outbound traffic by domain name and apply…Design Secure Architectures
- An application stores database credentials that must be rotated automatically every 30 days without code changes or…Design Secure Architectures
- Security requires stateful, centrally managed egress filtering (including domain-based allow lists) for outbound traffic…Design Secure Architectures
- A platform team lets application teams create their own IAM roles but must guarantee no role can ever exceed a defined…Design Secure Architectures
All 68 free SAA-C03 questions by domain · 15 sample questions on one page
Practise the full SAA-C03 exam
This question is one of a small free sample from the CertRidge SAA-C03 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.
Original question written from the official exam guide. Not affiliated with AWS; never copied from the real exam.