Courseiva
Question 238 of 1,660
Continuous Improvement for Existing SolutionsmediumMultiple SelectObjective-mapped

SAP-C02 Continuous Improvement for Existing Solutions Practice Question

A company is using an AWS Lambda function to process files uploaded to an S3 bucket. The function is written in Python and uses the boto3 library to read the files. Recently, some files have been processed multiple times. Which TWO measures should a solutions architect implement to ensure idempotent processing?

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

Use a DynamoDB table to store processed file IDs and check for duplicates before processing.

Options A and D are correct. Using a DynamoDB table to store processed file IDs (A) ensures idempotency by checking for duplicates before processing. Configuring S3 event notifications with prefix and suffix filters (D) reduces the chance of triggering multiple invocations for the same file. Option B is incorrect because simply using an SQS queue does not guarantee idempotent processing; additional deduplication logic is needed. Option C is incorrect because increasing the Lambda timeout does not prevent multiple invocations. Option E is incorrect because S3 Transfer Acceleration improves upload speed, not idempotency.

Answer analysis

Option-by-option breakdown

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

  • Use a DynamoDB table to store processed file IDs and check for duplicates before processing.

    Why this is correct

    Idempotency key store prevents duplicate processing.

  • Configure the S3 bucket to send events to an SQS queue and use the Lambda function to poll the queue.

    Why it's wrong here

    SQS helps with scaling but still needs deduplication logic.

  • Increase the Lambda function timeout to 15 minutes.

    Why it's wrong here

    Timeout does not prevent duplicate processing.

  • Configure S3 event notifications to filter by prefix and suffix to avoid triggering multiple times.

    Why this is correct

    Filtering reduces unnecessary invocations.

  • Enable S3 Transfer Acceleration on the bucket.

    Why it's wrong here

    Transfer Acceleration improves upload speed, not idempotency.

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

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 20, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.