Security
An S3 bucket policy directly grants a same-account assumed-role session ARN GetObject and DeleteObject; its permissions boundary allows only ListBucket, and its identity policy explicitly denies DeleteObject. With no other restrictions, which granted actions can the session perform?
Show the answer
Correct answerD. GetObject only
AWhy not this: A direct session grant does not override an applicable explicit deny of DeleteObject.
BWhy not this: The boundary's implicit deny does not block a same-account resource grant made directly to the role session.
CWhy not this: DeleteObject is explicitly denied, while GetObject is permitted by the direct session grant.
DWhy this is right: The session grant permits GetObject despite the boundary's omission, while the explicit deny blocks DeleteObject.
A same-account resource policy grant directly to a role session is not limited by an implicit deny in its permissions boundary. GetObject is therefore allowed, but the explicit identity-policy deny still blocks DeleteObject.