AWS Certified Developer – Associate (DVA-C02) — Question 382
A developer creates an AWS Lambda function that is written in Java. During testing, the Lambda function does not work how the developer expected. The developer wants to use tracing capabilities to troubleshoot the problem.
Which AWS service should the developer use to accomplish this goal?
Answer options
- A. AWS Trusted Advisor
- B. Amazon CloudWatch
- C. AWS X-Ray
- D. AWS CloudTrail
Correct answer: C
Explanation
AWS X-Ray is the dedicated AWS service for analyzing and debugging distributed applications, offering the necessary tracing capabilities to troubleshoot AWS Lambda functions. Amazon CloudWatch focuses on logging and metrics, whereas AWS CloudTrail logs API activity across the AWS infrastructure. AWS Trusted Advisor assists with optimization and security recommendations rather than application tracing.