A media company is developing a web platform where users upload high-resolution video files. The uploads occur unpredictably throughout the day. The company requires a cost-effective, scalable architecture to perform two tasks for each upload:
1. Write metadata to a database in the exact sequence in which the uploads occurred to maintain a chronological audit log.
2. Run a CPU-intensive transcoding pipeline that takes between 30 and 45 minutes to process each video.
Which combination of actions should a solutions architect recommend to meet these requirements cost-effectively? (Select TWO.)
- Configure Amazon EventBridge to route S3 upload events to an Amazon SQS FIFO queue, which triggers an AWS Lambda function to write metadata to the database.Cevap
- Run the transcoding pipeline using AWS Batch with an AWS Fargate Spot compute environment.Cevap
- CConfigure Amazon S3 event notifications to send upload events to a standard Amazon SQS queue, which triggers an AWS Lambda function to write metadata to the database.
- DConfigure an AWS Lambda function to execute the video transcoding pipeline directly upon S3 upload.
- EStore the video metadata in an Amazon DynamoDB table using provisioned capacity mode with high write capacity units (WCUs) to handle the peak upload spikes.
Cevap
Configure Amazon EventBridge to route S3 upload events to an Amazon SQS FIFO queue triggering an AWS Lambda function, and run the transcoding pipeline using AWS Batch with an AWS Fargate Spot compute environment.
The correct combination uses Amazon EventBridge to send S3 events to an Amazon SQS FIFO queue, which triggers AWS Lambda to sequentially write metadata to the database, ensuring strict ordering. It also uses AWS Batch with AWS Fargate Spot to process long-running transcoding tasks, bypassing the 15-minute Lambda limit in a serverless, highly cost-optimized manner.
Adım Adım Çözüm
Anahtar Kavram
Selecting the appropriate compute, queueing, and scaling options to support long-running processes and strict sequencing while minimizing idle capacity costs.
Tahmini Süre:2m 0s