Amazon
DVA-C02 · Question #14
An application that is hosted on an Amazon EC2 instance needs access to files that are stored in an Amazon S3 bucket. The application lists the objects that are stored in the S3 bucket and displays…
The correct answer is B. Update the IAM instance profile that is attached to the EC2 instance to include the S3:ListBucket. https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.html
Submitted by tunde_lagos· Mar 5, 2026Security
Question
An application that is hosted on an Amazon EC2 instance needs access to files that are stored in an Amazon S3 bucket. The application lists the objects that are stored in the S3 bucket and displays a table to the user. During testing, a developer discovers that the application does not show any objects in the list. What is the MOST secure way to resolve this issue?
Options
- AUpdate the IAM instance profile that is attached to the EC2 instance to include the S3:*
- BUpdate the IAM instance profile that is attached to the EC2 instance to include the S3:ListBucket
- CUpdate the developer's user permissions to include the S3:ListBucket permission for the S3
- DUpdate the S3 bucket policy by including the S3:ListBucket permission and by setting the
How the community answered
(18 responses)- A6% (1)
- B72% (13)
- C17% (3)
- D6% (1)
Explanation
https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.html
Community Discussion
No community discussion yet for this question.