Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
How can a developer ensure secure API requests to multiple S3 buckets from an EC2 instance without managing application credentials, applying the principle of least privilege?
A
Create an IAM user with access keys and associate with a policy allowing full S3 permissions.
B
Assign an IAM role to the EC2 instance with a policy for specific S3 bucket operations.
C
Use an IAM role with AmazonS3FullAccess policy for the EC2 instance.
D
Implement a bucket policy granting the EC2 instance permissions for bucket listing and object operations.