A media monitoring company processes video and audio news broadcasts. External feeds drop media files of varying sizes into an Amazon S3 bucket. A metadata file specifies a strict processing sequence (chronological ordering) that must be maintained for downstream sentiment analysis. The processing jobs extract transcripts using a CPU-heavy transcription engine, which takes between to minutes per file. The current system relies on a fixed fleet of Amazon EC2 instances, which results in high idle costs during periods of low activity. A solutions architect must design a serverless, automated scaling architecture that minimizes costs, scales to zero when there is no activity, and ensures the strict processing order of media files is preserved. Which architecture meets these requirements most cost-effectively?
- Configure an Amazon S3 event notification to trigger an AWS Lambda function that sends message metadata to an Amazon SQS FIFO queue. Deploy the transcription engine as containerized tasks in an Amazon ECS cluster using AWS Fargate Spot capacity providers. Configure an ECS service auto scaling policy based on the queue size to process the files. Store the output in Amazon Aurora Serverless v2.Answer
- BConfigure Amazon S3 to directly trigger an AWS Lambda function for each uploaded media file. Have the Lambda function execute the transcription engine code within its execution environment, and write the structured output directly to an Amazon Aurora Serverless v2 database.
- CConfigure an Amazon S3 event notification to trigger an AWS Lambda function that writes metadata to an Amazon SQS Standard queue. Deploy the transcription engine as containerized tasks in an Amazon ECS cluster using AWS Fargate Spot capacity providers. Scale the ECS tasks based on the number of messages in the queue, and store the output in Amazon Aurora Serverless v2.
- DConfigure Amazon S3 event notifications to send events to an Amazon EventBridge event bus. Route the events to run an Amazon ECS task on AWS Fargate using standard Fargate capacity providers. Process the media files and store the resulting transcription data in an Amazon DynamoDB table configured in Provisioned Capacity mode with Auto Scaling.