Which IAM approach is best when a workload must assume a role based on temporary permissions and optionally external trust conditions?

Answer

Use STS AssumeRole with temporary session credentials

Explanation

AWS Security Token Service (STS) AssumeRole provides temporary credentials with least privilege and can incorporate trust policies/conditions. Long-lived keys and direct attachments reduce flexibility and security.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list