DVA-C02 Question 322
Select 2Your development team is troubleshooting a latency issue in an AWS Lambda function that processes messages from an Amazon SQS queue. The function is taking longer than expected to process messages, and your manager has asked you to assist in identifying the root cause. Which of the following steps would help you identify the issue? (Choose TWO)
- A
Enable and review AWS X-Ray tracing for the Lambda function.
- B
Increase the memory allocation for the Lambda function.
- C
Analyze the CloudWatch Logs for the Lambda function to identify any errors or bottlenecks.
- D
Configure Amazon CloudTrail to monitor API calls made by the Lambda function.
- E
Set up a Dead Letter Queue (DLQ) for the Lambda function to capture failed messages.
Show answer and explanation
Correct answers: A, C
Explanation
To assist in identifying the root cause of a latency issue, you need tools that provide visibility into the Lambda function's execution and performance. AWS X-Ray tracing can reveal where time is being spent during execution, while CloudWatch Logs can provide detailed error messages and execution metrics. These tools are crucial for performing root cause analysis in a scenario like this.
- A. Correct.
AWS X-Ray tracing provides a detailed view of the Lambda function's execution path, including latencies for external calls or internal processing. This can help pinpoint latency issues.
- B. Incorrect.
While increasing memory allocation might improve performance, it does not directly assist in identifying the root cause of the latency issue.
- C. Correct.
CloudWatch Logs contain useful information such as error messages, execution time, and other metrics that can help identify bottlenecks or errors.
- D. Incorrect.
CloudTrail monitors API activity in your AWS account but does not provide detailed insights into the Lambda function's execution or performance issues.
- E. Incorrect.
A Dead Letter Queue (DLQ) helps capture failed messages for analysis but does not assist in identifying latency issues during normal function execution.