
Answer-first summary for fast verification
Answer: Employ Amazon EventBridge to handle S3 events generated by user image uploads. Utilize an AWS Lambda function to resize the images directly within the S3 bucket and replace the original files. Establish an S3 Lifecycle expiration policy to automatically delete all stored images after 6 months.
Option B is the correct answer. This solution uses Amazon EventBridge to process the S3 event triggered when a user uploads an image. It then utilizes an AWS Lambda function to resize the image directly within the S3 bucket and replaces the original file. An S3 Lifecycle expiration policy is implemented to automatically delete all stored images after 6 months. This approach is cost-effective and meets the requirements of handling significant demand variability and ensuring reliability at an enterprise scale with the ability to rerun processing jobs in case of failure. Options C and D extend the storage beyond the required 6 months, which is unnecessary and potentially more costly. Option A involves AWS Step Functions, which are not listed as a valid S3 event destination, making it unsuitable for this scenario.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A company offering image storage services aims to deploy a scalable and reliable customer-facing solution on AWS. This solution will cater to millions of individual users who will upload large batches of image files. The system must efficiently resize these files and store them in an Amazon S3 bucket for a duration of up to 6 months. Given the significant variability in demand and the necessity for robust failure recovery mechanisms, which of the following AWS-based solutions offers the most cost-effective approach to meet these requirements?
A
Utilize AWS Step Functions to manage S3 events triggered by user image uploads. Execute an AWS Lambda function to resize the images directly within the S3 bucket and replace the original files. Implement an S3 Lifecycle expiration policy to automatically delete all stored images after 6 months.
B
Employ Amazon EventBridge to handle S3 events generated by user image uploads. Utilize an AWS Lambda function to resize the images directly within the S3 bucket and replace the original files. Establish an S3 Lifecycle expiration policy to automatically delete all stored images after 6 months.
C
Leverage S3 Event Notifications to trigger an AWS Lambda function upon user image uploads. The Lambda function should resize the images directly within the S3 bucket and store the original files. Configure an S3 Lifecycle policy to transition all stored images to S3 Standard-Infrequent Access (S3 Standard-IA) after 6 months.
D
Incorporate Amazon Simple Queue Service (Amazon SQS) to manage S3 events from user image uploads. Execute an AWS Lambda function to resize the images and store the resized versions in an S3 bucket configured with S3 Standard-Infrequent Access (S3 Standard-IA). Set up an S3 Lifecycle policy to transition all stored images to S3 Glacier Deep Archive after 6 months.