DVA-C02 Question 320
Single answerA developer is troubleshooting an issue where a Lambda function periodically fails when processing messages from an Amazon SQS queue. The error logs indicate a 'ProvisionedThroughputExceededException'. Which action should the developer take to identify the root cause of this issue?
- A
Check the Amazon CloudWatch Metrics for the Lambda function's concurrent executions.
- B
Verify the IAM role permissions assigned to the Lambda function.
- C
Inspect the DLQ (Dead-Letter Queue) attached to the SQS queue for any failed messages.
- D
Analyze the Lambda function's memory usage and increase the memory allocation.
Show answer and explanation
Correct answer: A
Explanation
To identify the root cause of the 'ProvisionedThroughputExceededException', the developer needs to investigate whether the Lambda function's concurrency limit is being exceeded. Amazon CloudWatch Metrics provide detailed data on the function's concurrent executions, which can confirm or rule out concurrency issues. Other options, like inspecting IAM permissions or memory usage, do not address the specific error described.
- A. Correct.
Correct. The 'ProvisionedThroughputExceededException' often occurs when the Lambda function exceeds its concurrency limits. Checking the Amazon CloudWatch Metrics for concurrent executions can help determine if the Lambda function is hitting its limit.
- B. Incorrect.
Incorrect. While IAM role permissions are critical for Lambda execution, they are unrelated to a 'ProvisionedThroughputExceededException'.
- C. Incorrect.
Incorrect. Reviewing the DLQ might help identify messages that failed processing, but it does not directly address throughput or concurrency issues.
- D. Incorrect.
Incorrect. Memory allocation is unrelated to a 'ProvisionedThroughputExceededException', which is primarily caused by hitting concurrency limits or exceeding provisioned throughput.