Security, Compliance, and Governance for AI Solutions

An AI workload's IAM role has a policy allowing reads from a training-data bucket. Another policy attached to the role explicitly denies reads from its restricted prefix. What happens when the workload reads an object in that prefix?

Show the answer

Correct answerD. Access is denied because the explicit deny overrides the allow.

AWhy not this: A broad allow does not override an applicable explicit deny.

BWhy not this: IAM evaluates applicable policies together rather than using attachment order.

CWhy not this: Server-side encryption does not override an authorization denial.

DWhy this is right: The explicit deny applies to the requested prefix and takes precedence over the allow.

An applicable explicit deny overrides an allow during IAM policy evaluation. A broader bucket-level allow does not override a deny covering a specific prefix.