
Answer-first summary for fast verification
Answer: Lambda lacks the necessary permissions in its resource policy to be invoked by S3.
The correct answer is B. The resource-based policy for the Lambda function must have the necessary permissions to be invoked by Amazon S3. Although the Lambda function works when tested manually using the CLI, it still needs the correct permissions in its resource policy to be triggered by specific event sources such as S3. Without these permissions, the Lambda function will not be invoked when an event is generated by S3.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Why doesn't a Lambda function trigger when a file larger than 50 MB is uploaded to an S3 bucket, despite being tested manually via CLI?
A
S3 event notifications are disabled for files exceeding 1,000 MB.
B
Lambda lacks the necessary permissions in its resource policy to be invoked by S3.
C
Lambda functions are not designed to be triggered by S3 events.
D
The S3 bucket's privacy settings prevent Lambda invocation.
No comments yet.