ExamQuestions.com

Register
Login
AWS Certified Security Specialty Exam Questions

Amazon

AWS Certified Security Specialty

264 / 310

Question 264:

Clients can upload photos to an S3 bucket through a web application. When a photo is uploaded successfully, a Lambda function needs to be invoked to get the file and perform some analysis. You have already configured an event notification in the S3 bucket for the ObjectCreate events. How would you configure the permissions to allow Amazon S3 to invoke the Lambda function?

Answer options:

A.Add permissions to the Lambda execution role that allows the function to perform the "s3:GetObject" action.
B.Add permissions to the S3 bucket policy that allows the S3 bucket to invoke the Lambda function.
C.Add permissions to the S3 access control list (ACL) to permit the S3 bucket to invoke the Lambda function when an object is uploaded in the S3 bucket.
D.Add permissions to the Lambda function access policy that allows the Amazon S3 bucket principal to perform the "lambda:InvokeFunction" action.