DVA-C02 exam dumps

DVA-C02 practice question 322 of 399

AWS Certified Developer - Associate. Associate level, Amazon Web Services. Free question with the correct answer and a full explanation.

DVA-C02 Question 322

Select 2

Your 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)

  1. A

    Enable and review AWS X-Ray tracing for the Lambda function.

  2. B

    Increase the memory allocation for the Lambda function.

  3. C

    Analyze the CloudWatch Logs for the Lambda function to identify any errors or bottlenecks.

  4. D

    Configure Amazon CloudTrail to monitor API calls made by the Lambda function.

  5. 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.

Timed practice exam

Take a DVA-C02 practice test under exam conditions

65 questions in 130 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam