Identity and Access Management

An IAM user can assume a cross-account administrator role, but assumption must require MFA regardless of the user's identity policies. Where should the security engineer enforce this requirement?

Show the answer

Correct answerB. In the role's trust policy, condition sts:AssumeRole on aws:MultiFactorAuthPresent

AWhy not this: The role's permissions policy controls what an assumed session can do, not whether the user can assume the role.

BWhy this is right: An MFA condition in the trust policy makes MFA a requirement for assuming the role.

CWhy not this: A session policy limits session permissions; it does not establish the role's admission requirements.

DWhy not this: A boundary that allows assumption without an MFA condition does not enforce MFA.

The role's trust policy controls who can assume it and can require MFA for sts:AssumeRole. Conditioning the role's permissions policy affects actions after assumption, not whether a session can be created.