Courseiva
Continuous Improvement for Existing SolutionshardMultiple ChoiceObjective-mapped

SAP-C02 Continuous Improvement for Existing Solutions Practice Question

A company uses AWS Lambda to process files uploaded to an S3 bucket. The Lambda function writes results to a DynamoDB table. Over time, the function's execution time has increased, and some operations fail with ProvisionedThroughputExceededException. The function is configured with 1024 MB memory and a 5-minute timeout. The DynamoDB table has 1000 RCUs and 500 WCUs. The Lambda function performs reads and writes on the same table. What is the MOST cost-effective way to resolve the throttling without sacrificing performance?

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 SQS to decouple the S3 trigger from the Lambda function and implement a batching strategy to DynamoDB

The most cost-effective solution because it uses SQS to decouple the S3 trigger from the Lambda function, allowing the Lambda to batch writes to DynamoDB. This reduces the frequency of writes, smooths out traffic spikes, and enables retries on throttling exceptions without scaling up capacity. Option A (DAX) only improves read performance, not writes. Option C (increasing WCUs) increases cost significantly without addressing the root cause of bursty traffic. Option D (increasing memory) improves compute but not write throughput, and may increase cost without resolving throttling.

Answer analysis

Option-by-option breakdown

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

  • Enable DynamoDB Accelerator (DAX) for the table

    Why it's wrong here

    DAX improves read performance but does not increase write throughput.

  • Use SQS to decouple the S3 trigger from the Lambda function and implement a batching strategy to DynamoDB

    Why this is correct

    SQS buffers requests, allowing batch writes and reducing throttling.

  • Increase DynamoDB write capacity units to 1000 WCUs

    Why it's wrong here

    More costly and may not be needed if the issue is bursty.

  • Increase the Lambda function memory to 2048 MB

    Why it's wrong here

    Increasing memory only improves CPU, not DynamoDB write capacity.

Visual reference

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

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 writes every SAP-C02 question from scratch — 1,660 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. 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.