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
Related questions
A team wants to version infrastructure and application dependencies as code, and use a managed service to provision resources consistently. Which service is most appropriate?
View question →
A security team requires that application secrets not be stored in code and be rotated regularly. Which AWS service is the best match?
View question →
A service is deployed in multiple AWS Regions for resilience. Which strategy most directly uses infrastructure-level redundancy to reduce the impact of a regional failure?
View question →
In AWS, which service is most directly used to store and retrieve structured data at large scale with low-latency key-based access?
View question →
Which action best improves deployment reliability when using AWS Auto Scaling groups with rolling updates?
View question →
You need to run secure, repeatable database schema changes as part of a deployment. Which AWS-native service is typically used to orchestrate deployment steps and integrate with lifecycle hooks?
View question →