
Answer-first summary for fast verification
Answer: There is an error in the S3 bucket policy., There is an error in the IAM role configuration.
The AccessDenied error typically occurs due to permission issues. Option B, 'There is an error in the S3 bucket policy,' is correct because an incorrectly configured bucket policy can deny access to the object. Option D, 'There is an error in the IAM role configuration,' is also correct because if the IAM role associated with the EC2 instance lacks the necessary permissions to access the S3 object, an AccessDenied error will occur. Options A, C, and E are unrelated to permission issues and are thus incorrect.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
An Amazon EC2 instance within a VPC attempts to download an object from a restricted Amazon S3 bucket and encounters an AccessDenied error. What could be the potential reasons for this error?
A
The S3 bucket default encryption is enabled.
B
There is an error in the S3 bucket policy.
C
The object has been moved to S3 Glacier.
D
There is an error in the IAM role configuration.
E
S3 Versioning is enabled.
No comments yet.