DVA-C02 exam dumps

DVA-C02 practice question 330 of 399

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

DVA-C02 Question 330

Select 2

A development team is running a critical serverless application on AWS Lambda with an Amazon API Gateway front end. They want to ensure that they can monitor the performance of the Lambda functions and troubleshoot any errors effectively. Which combination of actions should they take to achieve this?

  1. A

    Enable AWS X-Ray tracing for the API Gateway and Lambda functions.

  2. B

    Use Amazon CloudTrail to log API Gateway requests and responses in real-time.

  3. C

    Configure Amazon CloudWatch Logs for the Lambda functions to capture execution logs.

  4. D

    Create custom CloudWatch metrics using the AWS SDK to monitor Lambda function performance.

  5. E

    Enable detailed monitoring for Lambda functions in the AWS Management Console.

Show answer and explanation

Correct answers: A, C

Explanation

To effectively monitor and troubleshoot a serverless application using AWS Lambda and API Gateway, enabling AWS X-Ray provides distributed tracing to analyze performance and dependencies. Configuring Amazon CloudWatch Logs ensures that execution logs, including errors, are captured for debugging. These actions provide a comprehensive view of the application's performance and help identify issues quickly.

  • A. Correct.

    Enabling AWS X-Ray provides end-to-end tracing of requests across AWS services, including API Gateway and Lambda, which helps monitor performance and troubleshoot issues.

  • B. Incorrect.

    Amazon CloudTrail logs API calls and management events but does not provide real-time monitoring or detailed request/response logging for API Gateway.

  • C. Correct.

    Amazon CloudWatch Logs can be configured to capture logs from Lambda functions, such as execution details and error messages, which are crucial for troubleshooting.

  • D. Incorrect.

    While creating custom CloudWatch metrics can help monitor specific performance indicators, it is not a standard solution for logging or monitoring Lambda functions in this scenario.

  • E. Incorrect.

    Detailed monitoring is not an option for AWS Lambda. Lambda functions already publish detailed metrics to CloudWatch by default without the need for enabling additional monitoring.

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