Data Operations and Support

An S3 bucket notification must invoke a Lambda function that reads each newly uploaded object. Which permissions are required for invocation and object access? (Choose two.)

Choose 2 answers

Show the answer

Correct answersA. Allow s3.amazonaws.com to invoke the function in its resource-based policy.C. Allow s3:GetObject on the input objects in the function's execution role.

AWhy this is right: The resource-based policy authorizes the S3 service to invoke the function.

BWhy not this: PutBucketNotification permits notification configuration changes, not object reads or function invocation.

CWhy this is right: The execution role supplies the permissions the running function uses to read S3 objects.

DWhy not this: ListBucket permits listing object keys but does not permit reading object contents.

EWhy not this: This service principal authorizes EventBridge rather than direct S3 notifications.

FWhy not this: Execution-role permissions govern actions performed by the function, not incoming S3 invocations.

S3 needs permission in the Lambda resource-based policy to invoke the function, and the execution role needs s3:GetObject to read objects. Granting lambda:InvokeFunction to the execution role authorizes calls made by the function, not incoming invocations from S3.