Question 268:
An application running on Amazon EC2 processes files that are stored in an Amazon S3 bucket. What is the BEST way to provide the application with access to the S3 bucket?
Answer options:
A.Create a new account with permissions to the S3 bucket. Provide the Application Developer with the access key ID and secret access key to be embedded into the application. B.Create a new access key for the root user. Provide the Developer with the access key ID and secret access key embedded into the application. C.Set the bucket properties in “Static website hosting” to “use this bucket to host a website”, and give the Developer the website URL. D.Create an IAM role that has access to the S3 bucket. Attach the role to the EC2 instance running the application.