1. Home
  2. Computer Science MCQs
  3. Cloud Computing
  4. A user's identity policy allows s3:GetObject on a bucket…

Added 30 Nov -0001

A user's identity policy allows s3:GetObject on a bucket, but the bucket policy contains an explicit Deny for that user. What is the result of the request?

  1. Denied only if the bucket policy also lists that user in a NotPrincipal element
  2. Allowed, because both statements are evaluated and the allow matches first
  3. Denied, because an explicit deny anywhere in IAM always overrides any allow Correct answer
  4. Allowed, because identity policies take precedence over resource policies

Correct answer

C. Denied, because an explicit deny anywhere in IAM always overrides any allow

19 views

MCQSEXAM

Explanation

AWS evaluates identity-based policies, resource-based policies, permissions boundaries and service control policies together, and an explicit deny in any one of them overrides every allow. If no statement allows the action, the implicit default deny also applies, which is why attaching a policy is not enough without a matching Allow. This deny-wins rule is the single most tested point in IAM policy evaluation.

Reference

Asked in: NTS, PPSC IT, Campus Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Cloud Computing MCQs

Practise all Cloud Computing MCQs

Similar MCQs