AWS Certified Developer Associate DVA-C02 Practice Question
When granting an EC2 instance the necessary permissions to access S3 buckets, which AWS feature should you primarily use?
Creating a new IAM user for the instance
Generating access keys for the root account
Attaching an IAM role to the instance
Using Amazon Cognito user pools