SOA-C03 practice question 10 of 10

A company runs a website on Amazon EC2 instances. Users can upload images to an Amazon S3 bucket and publish the images to the website. The company…

Choose your answer, then check it against the explanation and the full breakdown below.

Domain Deployment, Provisioning, and Automation

A company runs a website on Amazon EC2 instances. Users can upload images to an Amazon S3 bucket and publish the images to the website. The company wants to deploy a serverless image- processing application that uses an AWS Lambda function to resize the uploaded images. The company's development team has created the Lambda function. A CloudOps engineer must implement a solution to invoke the Lambda function when users upload new images to the S3 bucket. Which solution will meet this requirement?
Answer options
Question 10 of 10

Question breakdown

Tests
Implement event-driven invocation from Amazon S3
Difficulty
Easy

Key idea: S3 Event Notifications can invoke a Lambda function directly on object-created events, with no intermediary service required.

How to reach the answer

  1. The trigger is an object upload to an S3 bucket.
  2. S3 Event Notifications support Lambda as a native destination for s3:ObjectCreated events.
  3. SNS or SQS would only help if fan-out or buffering were required, and neither is mentioned.
  4. CloudWatch alarms respond to metric thresholds, not individual object events.

Each option

  • AIncorrect. SNS can be placed in the path, but it still needs S3 notifications as the source and adds an unneeded hop.
  • BIncorrect. CloudWatch alarms evaluate metric thresholds and do not fire on individual object uploads.
  • CCorrect. S3 Event Notifications invoke the Lambda function directly when new objects are created.
  • DIncorrect. An SQS queue adds buffering that the requirement does not call for and still depends on S3 notifications to receive events.

Common trap: SNS and SQS are familiar decoupling services, so they seem necessary, but S3 can call Lambda directly.

In practice: Thumbnail generation, file validation and metadata extraction pipelines are commonly built on S3 notifications that trigger Lambda, optionally filtered by prefix or suffix.

Remember: For 'run code when an object is uploaded', configure an S3 Event Notification with Lambda as the destination.

Drafted with AI assistance and checked against the answer key.

Keep practicing

Take the free SOA-C03 practice test

Ten exam-style questions with answers and explanations, plus the exam facts and study guides.

Start the free practice test

More questions

Other SOA-C03 practice questions

Scroll to Top