Free AWS Certified Solutions Architect Associate SAA-C03 Practice Question
Using AWS Identity and Access Management (IAM) roles is more secure for EC2 instances to access AWS services than storing static IAM user credentials on the instance.
Using IAM roles for EC2 instances is the recommended best practice for providing AWS service access from applications running on EC2, as IAM roles provide temporary security credentials that are automatically rotated and do not require manual management. Storing static IAM user credentials on the instance is less secure because it risks exposing long-term credentials if the instance is compromised.
Learn More
AI Generated Content may display inaccurate information, always double-check anything important.
What are IAM roles and how do they work?
Why is using temporary credentials more secure than static IAM user credentials?
What is the risk of storing static IAM user credentials on an EC2 instance?