Security
Which AssumeRole parameter supplies a session identifier that appears in the assumed-role session ARN recorded in AWS CloudTrail?
Show the answer
Correct answerD. RoleSessionName
AWhy not this: ExternalId supplies a value for trust-policy validation rather than naming the session.
BWhy not this: DurationSeconds specifies how long the requested credentials should remain valid.
CWhy not this: PolicyArns specifies managed session policies that restrict the session's permissions.
DWhy this is right: RoleSessionName supplies the session identifier included in the assumed-role session ARN.
RoleSessionName identifies the assumed-role session and forms part of its ARN, supporting attribution in CloudTrail. ExternalId is used for trust-policy checks, not as the session identifier in the ARN.