SAP-C02 Question 504
Single answerYour company is running a serverless data processing pipeline on AWS that uses Amazon S3, AWS Lambda, and Amazon DynamoDB. During a recent deployment, the pipeline started failing intermittently. Upon investigation, you discover that AWS Lambda is throwing errors related to throttling. Which action should you take to resolve the issue?
- A
Increase the concurrency limit for AWS Lambda in the AWS Service Quotas console.
- B
Enable provisioned concurrency for your Lambda function.
- C
Request a service quota increase for the Amazon DynamoDB table used in the pipeline.
- D
Adjust the retry logic in your pipeline to handle throttling errors gracefully.
Show answer and explanation
Correct answer: A
Explanation
AWS Lambda functions have default concurrency limits, which can cause throttling errors if exceeded. If your Lambda function needs to handle higher workloads, you can request a quota increase for the concurrency limit through the AWS Service Quotas console. Other options, such as enabling provisioned concurrency or adjusting retry logic, address different issues and do not directly resolve concurrency limit-related throttling.
- A. Correct.
This is the correct answer. AWS Lambda has default concurrency limits, and if your function exceeds the allowed concurrency, it can cause throttling errors. Increasing the concurrency limit in the AWS Service Quotas console is the appropriate step to resolve this issue.
- B. Incorrect.
While provisioned concurrency can help with cold start latency for specific Lambda functions, it does not address concurrency limits or throttling errors caused by exceeding service quotas.
- C. Incorrect.
Requesting a quota increase for an Amazon DynamoDB table would only be relevant if the throttling errors were related to DynamoDB. In this scenario, the issue is explicitly related to AWS Lambda.
- D. Incorrect.
Adjusting the retry logic can help mitigate throttling errors, but it does not resolve the root cause of exceeding the concurrency limit for AWS Lambda.