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