A team is deploying an application on Amazon EC2 instances. During testing the instances fail to access an Amazon S3 bucket. Which steps should the team take to debug the problem? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: Verify the IAM role policy attached to the EC2 instances grants access to Amazon S3., Inspect the S3 bucket policy to confirm the bucket allows the requested access..
Why this is the answer
When an EC2 instance cannot access an S3 bucket, both the identity (the EC2 instance's IAM role) and the resource (the S3 bucket) must have appropriate permissions. Verifying the IAM role policy attached to the EC2 instances is crucial because this policy dictates what actions the instance is allowed to perform. If the role lacks permissions for S3, access will be denied. Similarly, inspecting the S3 bucket policy is essential because it defines who can access the bucket and under what conditions, potentially overriding or restricting access even if the IAM role has permissions. Incorrect options: IAM user policies are for users, not EC2 instances. EC2 instances use IAM roles. S3 Lifecycle policies manage object transitions and expirations, not access permissions. Security groups control network traffic to/from EC2 instances. While important for network connectivity, they do not manage S3 access permissions, which are handled at the IAM and S3 bucket policy level. S3 is accessed over the internet or via VPC endpoints, not directly through a security group rule to an S3 IP.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed