AWS Certified SysOps Administrator – AssociateDeployment, Provisioning, and AutomationEasy
A media company uses Amazon S3 to store large video files. They need to ensure that when a new video file is uploaded to a specific S3 bucket, a serverless function is automatically triggered to transcode the video into multiple formats. Which AWS service can be used to set up this event-driven automation?
- AAWS Step Functions
- BAmazon S3 Event Notifications with AWS Lambda
- CAWS Data Pipeline
- DAWS Batch
Show answer & explanationAnswer & explanation
Correct answer: B. Amazon S3 Event Notifications with AWS Lambda
Amazon S3 Event Notifications can be configured to send a message to an AWS Lambda function whenever an object is created (uploaded) in an S3 bucket. This triggers the Lambda function to perform the video transcoding, providing an efficient serverless solution.
Why the other options are wrong
- A. AWS Step Functions orchestrates complex workflows, but S3 Event Notifications directly invoking Lambda is simpler for a single-step trigger.
- C. AWS Data Pipeline is for orchestrating data processing workloads across different AWS services, not for real-time S3 object-upload triggers.
- D. AWS Batch is for running batch computing workloads, not directly triggered by S3 events for serverless functions.
S3 Event Notifications to Lambda
Amazon S3 Event Notifications allow you to configure S3 buckets to send notifications to AWS Lambda functions (or SQS/SNS) when specified events (like object creation or deletion) occur.
- Event types include `s3:ObjectCreated:*`, `s3:ObjectRemoved:*`.
- Lambda function receives event details as input.
- Enables real-time, event-driven processing of S3 objects.
Memory trick: S3 *notifies* Lambda when something new *pops* in.