Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
AWS Certified Solutions Architect - Professional · AWS
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
If you are tempted to go with D - remember that S3 event notificaitons can ONLY be sent to : SQS, Lambda, SNS Topic, Event Bridge. You cannot DIRECTLY invoke a Step function as part of the S3 notification. You can use Event bridge to do that. But that is not mentioned here.
Option B would add unnecessary latency by running the detection logic every time an image is fetched from the origin
By using a Lambda@Edge function triggered by an origin-response event, you can inspect and process the images as soon as they are retrieved from the S3 bucket, before they are cached and served to the end-users. This allows you to detect and handle corrupted images with minimal latency, ensuring a better user experience in the web application. Option C (S3 event notification invoking a Lambda function) would introduce additional latency, as the Lambda function would run after the image has been ingested into the S3 bucket, and the detection logic would not be integrated with the serving process.