0
0
AWScloud~5 mins

Lambda with S3 event triggers in AWS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
AAWS CloudTrail
BAWS Lambda
CAmazon RDS
DAmazon EC2
What type of S3 event can trigger a Lambda function when a new file is uploaded?
AObjectDeleted
BBucketPolicyChanged
CObjectCreated
DLifecycleRuleApplied
What must you configure to allow Lambda to access files in an S3 bucket?
ACloudWatch alarms
BS3 bucket policy only
CVPC settings
DLambda execution role with S3 permissions
How do you connect an S3 event to a Lambda function?
ABy adding a notification configuration on the S3 bucket
BBy creating an S3 bucket policy
CBy enabling CloudTrail logging
DBy setting up an EC2 instance
Which of the following is NOT a valid S3 event trigger for Lambda?
ABucketDeleted
BObjectRemoved:Delete
CObjectCreated:Put
DObjectRestore:Completed
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.