Security and Compliance

A deployment broker assumes one IAM role that permits deployment to several applications; each job must receive credentials restricted to its assigned application. Without changing the shared role or account-wide controls between jobs, how should the broker restrict each session?

Show the answer

Correct answerD. Pass a restrictive session policy when assuming the role.

AWhy not this: Changing the shared role's boundary affects the role rather than independently restricting each job's session.

BWhy not this: An SCP affects organizational permission limits, not an individual assumed-role session.

CWhy not this: A trust policy controls who can assume a role, not which application resources the session can deploy.

DWhy this is right: A session policy can narrow each job's temporary permissions without changing the shared role.

A session policy restricts a particular assumed-role session to the intersection of the role's permissions and the session policy. A permissions boundary applies to the shared role rather than independently tailoring each job's session.