AWS Certified Solutions Architect – Associate (SAA-C02) — Question 689
A social media company allows users to upload images to its website. The website runs on Amazon EC2 instances. During upload requests, the website resizes the images to a standard size and stores the resized images in Amazon S3. Users are experiencing slow upload requests to the website.
The company needs to reduce coupling within the application and improve website performance. A solutions architect must design the most operationally efficient process for image uploads.
Which combination of actions should the solutions architect take to meet these requirements? (Choose two.)
Answer options
- A. Configure the application to upload images to S3 Glacier.
- B. Configure the web server to upload the original images to Amazon S3.
- C. Configure the application to upload images directly from each user's browser to Amazon S3 through the use of a presigned URL.
- D. Configure S3 Event Notifications to invoke an AWS Lambda function when an image is uploaded. Use the function to resize the image.
- E. Create an Amazon EventBridge (Amazon CloudWatch Events) rule that invokes an AWS Lambda function on a schedule to resize uploaded images.
Correct answer: B, D
Explanation
Uploading the original images directly to Amazon S3 (Option B) offloads the resource-intensive resizing computation from the EC2 web servers during the upload transaction. Utilizing S3 Event Notifications to trigger an AWS Lambda function asynchronously (Option D) ensures that the image resizing is decoupled and processed immediately upon upload without impacting user-facing performance. Other options like S3 Glacier (Option A) are designed for archiving, and scheduled runs (Option E) would introduce undesirable processing delays.