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