DVA-C02 exam dumps

DVA-C02 practice question 331 of 399

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

DVA-C02 Question 331

Select 3

You are developing a serverless application on AWS using AWS Lambda. The application processes real-time user data and writes logs to Amazon CloudWatch Logs. Recently, you have noticed an increase in Lambda execution duration and need to identify the root cause. Which logging and monitoring tools can help you gather insights into the issue?

  1. A

    Enable X-Ray tracing for the Lambda function to analyze end-to-end request latency.

  2. B

    Use CloudWatch Logs Insights to query and analyze the application logs.

  3. C

    Enable Lambda function versioning to compare execution performance across versions.

  4. D

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

  5. E

    Set up a CloudWatch metric filter to create custom metrics from specific log patterns.

Show answer and explanation

Correct answers: A, B, E

Explanation

To troubleshoot increased Lambda execution duration, you need tools that provide detailed execution insights and log analysis. X-Ray tracing helps identify latency bottlenecks, while CloudWatch Logs Insights enables querying and analyzing logs to detect errors or patterns. Additionally, CloudWatch metric filters allow you to create actionable metrics from log patterns for monitoring specific issues. These tools together form a comprehensive approach to diagnosing and resolving performance issues in serverless applications.

  • A. Correct.

    Enabling X-Ray tracing provides detailed insights into the Lambda function's execution, including latency and downstream service interactions, helping identify performance bottlenecks.

  • B. Correct.

    CloudWatch Logs Insights allows you to query and analyze log data efficiently, making it useful for identifying patterns or errors contributing to increased execution times.

  • C. Incorrect.

    Lambda function versioning is useful for managing code deployments but does not directly help in diagnosing performance issues or analyzing logs.

  • D. Incorrect.

    Amazon CloudTrail tracks API calls for AWS resources but does not provide insights into the execution performance or logs of the Lambda function.

  • E. Correct.

    CloudWatch metric filters can be used to extract metrics from log patterns, enabling you to monitor specific events or anomalies that might be contributing to the performance issue.

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