Courseiva
Design for New SolutionseasyMultiple ChoiceObjective-mapped

SAP-C02 Design for New Solutions Practice Question

A company is building a serverless application using AWS Lambda. The Lambda function needs to process files uploaded to an S3 bucket. The function should be triggered as soon as a new object is created. How should the architect configure this?

⚠ Common exam trap

The trap here is that candidates may overcomplicate the solution by introducing intermediate services like SNS or SQS, not realizing that S3 can directly invoke Lambda with no additional components, which is the simplest and most cost-effective design.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Configure S3 to send event notifications to the Lambda function directly

Amazon S3 can directly invoke an AWS Lambda function via event notifications when a new object is created. This is the simplest and most direct integration, requiring no intermediate services. S3 publishes an event to Lambda, which then executes the function synchronously, ensuring near-real-time processing of uploaded files.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Configure S3 to send event notifications to the Lambda function directly

    Why this is correct

    S3 event notifications can directly invoke Lambda functions.

  • Configure S3 to send event notifications to an SNS topic, which triggers the Lambda function

    Why it's wrong here

    SNS is unnecessary; S3 can directly invoke Lambda.

  • Configure S3 to send event notifications to an SQS queue, and have the Lambda function poll the queue

    Why it's wrong here

    Configuring S3 to send event notifications to an SQS queue introduces latency because the Lambda function must poll the queue, which prevents near-instantaneous invocation upon object creation. The requirement demands immediate processing triggered by the event, which S3 event notifications sent directly to Lambda achieve without polling delays. This approach is tempting because SQS decouples processing and handles high-throughput or batch workloads, making it correct when asynchronous, buffered consumption is acceptable.

  • Configure S3 to send event notifications to Amazon CloudWatch Events, which triggers the Lambda function

    Why it's wrong here

    CloudWatch Events is not the typical trigger for S3 events.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

One of 1,660 original SAP-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This SAP-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SAP-C02 exam.