AWS Certified Solutions Architect – Professional — Question 946

A company runs a video processing platform. Files are uploaded by users who connect to a web server, which stores them on an Amazon EFS share. This web server is running on a single Amazon EC2 instance. A different group of instances, running in an Auto Scaling group, scans the EFS share directory structure for new files to process and generates new videos (thumbnails, different resolution, compression, etc.) according to the instructions file, which is uploaded along with the video files. A different application running on a group of instances managed by an Auto Scaling group processes the video files and then deletes them from the
EFS share. The results are stored in an S3 bucket. Links to the processed video files are emailed to the customer.
The company has recently discovered that as they add more instances to the Auto Scaling Group, many files are processed twice, so image processing speed is not improved. The maximum size of these video files is 2GB.
What should the Solutions Architect do to improve reliability and reduce the redundant processing of video files?

Answer options

Correct answer: B

Explanation

Synchronizing the EFS share to Amazon S3 via a cron job on the web server allows the system to transition to an event-driven architecture. Triggering an AWS Lambda function for each file uploaded to S3 ensures that each video is processed individually and exactly once, eliminating the race conditions caused by multiple EC2 instances scanning the same EFS directory. Finally, using Amazon CloudWatch Events to trigger Amazon SES ensures reliable delivery of the processed video links to customers.