Question 80
A long-running EC2 service must call AWS APIs over weeks. Its current code caches a single STS session in a configuration file and fails after token expiry. Which design best balances secure credential lifetimes with continuity?
Explanation
Correct Answer
SDK role providers can refresh temporary credentials without distributing a permanent access key, so secure expiration does not interrupt normal requests.
Incorrect Answers
AWS STS temporary sessions are intentionally time-limited; indefinite sessions are not a supported replacement.
Root credentials are far too privileged and do not solve secure role-based workload identity.
Changing a role maximum affects future session requests; it cannot extend a previously issued token. A refreshable SDK credential provider is needed for uninterrupted execution.






AWS Certified Solutions Architect - Associate SAA-C03 Practice Tests