Question 10
Two AWS accounts need controlled role assumption for a vendor integration. The team confirms that the partner's sessions must last no longer than one hour. Which choice directly addresses the documented cause?
Explanation
Correct Answer
The scenario identifies this requirement: The partner's sessions must last no longer than one hour. Select Set supported role maximum session duration and request a bounded STS session as the specified technical mechanism. Role session-duration controls limit the validity of assumed credentials. This response addresses the problem described rather than a different design goal.
Incorrect Answers
The option Require a vendor-specific external ID in the role trust relationship addresses a separate condition: another customer of the same vendor could supply a stolen role ARN. An external ID mitigates cross-customer confused-deputy role assumption. The actual requirement is the partner's sessions must last no longer than one hour. Recommended corrective action: Set supported role maximum session duration and request a bounded STS session. Role session-duration controls limit the validity of assumed credentials.
Add the vendor principal to the role trust policy for sts:AssumeRole would help if the vendor cannot assume a role even though the target role has S3 permissions. Trust policies determine who may assume a role, separate from the role permissions. That is not the symptom described here: the partner's sessions must last no longer than one hour. The matching response is Set supported role maximum session duration and request a bounded STS session, because role session-duration controls limit the validity of assumed credentials.
For the alternative failure the partner assumes a role but cannot list the specified destination bucket, the control Grant s3:ListBucket on the intended bucket ARN in the role permissions is relevant: assuming a role does not create permissions omitted from its identity policy. Here the evidence instead is the partner's sessions must last no longer than one hour. The selected technical mechanism is Set supported role maximum session duration and request a bounded STS session: role session-duration controls limit the validity of assumed credentials.