A developer tested an application locally and then deployed it to AWS Lambda. While testing the application remotely, the Lambda function fails with an access denied message.
How can this issue be addressed?
A . Update the Lambda function’s execution role to include the missing permissions.
B . Update the Lambda function’s resource policy to include the missing permissions.
C . Include an IAM policy document at the root of the deployment package and redeploy the Lambda function.
D . Redeploy the Lambda function using an account with access to the AdministratorAccess policy.
Answer: A
Explanation:
Reference: https://aws.amazon.com/premiumsupport/knowledge-center/access-denied-lambda-s3-bucket/