Recall & Review
beginner
What is an AWS Lambda function?
AWS Lambda is a service that lets you run code without managing servers. You upload your code, and Lambda runs it when triggered.
Click to reveal answer
beginner
What is an S3 event trigger for Lambda?
An S3 event trigger tells Lambda to run your function when something happens in an S3 bucket, like a file upload or deletion.
Click to reveal answer
beginner
Name two common S3 events that can trigger a Lambda function.
1. ObjectCreated (when a new file is added)<br>2. ObjectRemoved (when a file is deleted)
Click to reveal answer
intermediate
Why is it important to set permissions correctly for Lambda to access S3?
Lambda needs permission to read or write files in S3. Without proper permissions, Lambda cannot access the bucket or objects.
Click to reveal answer
intermediate
How does Lambda know which S3 bucket and event to listen to?
You add a notification on the S3 bucket that points to the Lambda function and specifies the event type.
Click to reveal answer
Which AWS service runs your code in response to S3 events without managing servers?
✗ Incorrect
AWS Lambda runs your code automatically when triggered by events like those from S3.
What type of S3 event can trigger a Lambda function when a new file is uploaded?
✗ Incorrect
The ObjectCreated event triggers Lambda when a new file is added to the bucket.
What must you configure to allow Lambda to access files in an S3 bucket?
✗ Incorrect
Lambda needs an execution role with permissions to access S3 resources.
How do you connect an S3 event to a Lambda function?
✗ Incorrect
You add a notification on the S3 bucket that triggers the Lambda function on specific events.
Which of the following is NOT a valid S3 event trigger for Lambda?
✗ Incorrect
There is no 'BucketDeleted' event in S3 for Lambda triggers.
Explain how you would set up a Lambda function to run when a new file is uploaded to an S3 bucket.
Think about permissions, event types, and linking the services.
You got /4 concepts.
Describe why permissions are important when using Lambda with S3 event triggers and what could happen if they are missing.
Consider what Lambda needs to do with the files in S3.
You got /4 concepts.