For one DynamoDB table, a role policy allows GetItem, PutItem, Query, and DeleteItem; its permissions boundary allows GetItem, PutItem, Query, and Scan. A session policy allows GetItem, PutItem, Query, and UpdateItem; with no other applicable policies, which actions can the session perform? (Choose three.)
Choose 3 answers
Show the answer
Correct answersA. dynamodb:PutItemC. dynamodb:GetItemD. dynamodb:Query
AWhy this is right: PutItem is allowed by the role policy and falls within both the boundary and the session policy.
BWhy not this: UpdateItem appears in the session policy, which cannot grant permissions absent from the role policy.
CWhy this is right: GetItem is allowed by the role policy and falls within both the boundary and the session policy.
DWhy this is right: Query is allowed by the role policy and falls within both the boundary and the session policy.
EWhy not this: Scan appears in the boundary, but the boundary grants no permissions and the other policies do not allow it.
FWhy not this: DeleteItem is allowed by the role policy but is outside both the boundary and the session policy.
GetItem, PutItem, and Query are allowed by the role policy, permissions boundary, and session policy. Effective permissions are their intersection; an action allowed by only one policy does not become available to the session.