SAP-C02 Continuous Improvement for Existing Solutions Practice Question
A company has a production AWS Lambda function that processes data from an Amazon SQS queue. The function often experiences throttling errors. The company wants to implement a solution to reduce throttling and improve processing performance. Which solution meets these requirements?
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
✓
Increase the reserved concurrency for the Lambda function.
Increasing the reserved concurrency for the Lambda function guarantees that the function can process more invocations concurrently, reducing throttling errors. Option A is incorrect because SQS queues do not have a configurable concurrency limit; concurrency is managed at the Lambda function level. Option C is incorrect because distributing messages across multiple queues does not increase the function's concurrency; each queue invocation still counts toward the same reserved concurrency. Option D, increasing the batch size, can improve throughput per invocation but does not reduce throttling caused by insufficient concurrency.
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 the SQS queue to use a higher concurrency limit.
Why it's wrong here
SQS does not have concurrency limits.
- ✓
Increase the reserved concurrency for the Lambda function.
Why this is correct
This ensures the function has enough concurrency to avoid throttling.
- ✗
Create additional SQS queues and distribute messages across them.
Why it's wrong here
This adds complexity and does not increase Lambda concurrency.
- ✗
Increase the batch size of the Lambda event source mapping.
Why it's wrong here
This increases messages per invocation but does not directly reduce throttling.
Quick reference
Cloud Service Model Comparison
| Model | You Manage | Provider Manages | Examples |
|---|---|---|---|
| IaaS | OS, runtime, apps, data | Hardware, hypervisor, networking | EC2, Azure VMs, GCP Compute Engine |
| PaaS | Apps and data | OS, runtime, middleware, hardware | Elastic Beanstalk, Azure App Service |
| SaaS | Data and settings only | Everything else | Microsoft 365, Salesforce, Workday |
| FaaS / Serverless | Function code only | Infra, scaling, runtime | Lambda, Azure Functions, Cloud Run |
| CaaS | Containers and apps | Kubernetes, OS, hardware | EKS, AKS, GKE |
Go deeper
Related to this question
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 →
Same concept, more angles
3 more ways this is tested on SAP-C02
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A company uses AWS Lambda functions to process events from an SQS queue. The Lambda function is configured with a reserved concurrency of 5. The SQS queue has a high volume of messages, and the Lambda function is experiencing throttling errors. What is the most cost-effective solution to reduce throttling?
easy- A.Create multiple Lambda functions each processing a subset of the queue.
- B.Decrease the reserved concurrency to force the function to process messages more efficiently.
- ✓ C.Increase the reserved concurrency for the Lambda function.
- D.Increase the batch size of the SQS event source mapping.
Why C: Increasing the reserved concurrency from 5 to a higher value allows the Lambda function to handle more concurrent invocations, directly reducing throttling errors. Option A is incorrect because each Lambda function has its own concurrency limit; adding more functions does not increase the concurrency of a single function. Option B is incorrect because decreasing reserved concurrency would worsen throttling. Option D is incorrect because increasing the batch size increases the number of messages processed per invocation but does not increase the number of concurrent invocations, so it does not address throttling caused by concurrency limits.
Variation 2. A company uses AWS Lambda to process events from an SQS queue. The Lambda function has a reserved concurrency of 5. During peak hours, messages are being backed up in the queue. The function's duration is well within the 15-minute limit. What is the fastest way to increase throughput?
easy- A.Increase the function's maximum thread count.
- ✓ B.Increase the reserved concurrency to 20.
- C.Create additional SQS queues and distribute messages.
- D.Increase the SQS batch size to 100.
Why B: Increasing the reserved concurrency to 20 allows more Lambda functions to run simultaneously, enabling more messages to be processed in parallel. This is the fastest way to increase throughput because it directly increases the number of concurrent executions handling messages from the SQS queue. Option A is incorrect because Lambda does not have a configurable maximum thread count. Option C is incorrect because the SQS batch size is limited to a maximum of 10, not 100. Option D is incorrect because creating additional queues would require significant application changes and does not directly increase the processing capacity of the existing Lambda function.
Variation 3. A company uses AWS Lambda to process incoming messages from an SQS queue. The Lambda function is triggered by SQS and processes messages in batches of 10. Recently, the number of messages has increased significantly, and some messages are being processed multiple times. What should a solutions architect do to ensure exactly-once processing?
medium- A.Use a DynamoDB table to store unique message IDs and check for duplicates before processing.
- B.Set the Lambda function's reserved concurrency to a higher value to prevent throttling.
- C.Increase the visibility timeout of the SQS queue to 30 minutes.
- ✓ D.Change the SQS queue to a FIFO queue and enable content-based deduplication.
Why D: Exactly-once processing is achieved by using an SQS FIFO queue with content-based deduplication. FIFO queues guarantee that a message is delivered exactly once and consumers receive messages in order. Lambda supports SQS FIFO as an event source, though it has lower throughput limits. Option A (DynamoDB-based idempotency) also works but adds complexity and cost. Option B (increasing reserved concurrency) only helps with scaling but does not prevent duplicates if a message is processed but the function fails after processing. Option C (increasing visibility timeout) delays reprocessing but does not guarantee exactly-once if the function is throttled or fails.
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.