nerdexam
Amazon

DVA-C02 · Question #388

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…

The correct answer is C. AWS X-Ray. AWS X-Ray provides active tracing and service map visualization for Lambda functions, enabling developers to identify performance bottlenecks and debug unexpected behavior by following requests through the execution chain.

Submitted by miguelv· Mar 5, 2026Monitoring and Troubleshooting

Question

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?

Options

  • AAWS Trusted Advisor
  • BAmazon CloudWatch
  • CAWS X-Ray
  • DAWS CloudTrail

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    4% (1)
  • C
    92% (24)

Why each option

AWS X-Ray provides active tracing and service map visualization for Lambda functions, enabling developers to identify performance bottlenecks and debug unexpected behavior by following requests through the execution chain.

AAWS Trusted Advisor

AWS Trusted Advisor provides best-practice recommendations for cost, security, and performance at the account level but does not capture function-level execution traces or runtime debugging information.

BAmazon CloudWatch

Amazon CloudWatch provides logs and metrics for Lambda (such as duration and error counts) but does not offer the detailed distributed tracing and request-level visualization that X-Ray provides for debugging logic issues.

CAWS X-RayCorrect

AWS X-Ray integrates directly with AWS Lambda to capture trace data including invocation timing, subsegment details, and downstream service calls. Enabling active tracing on the Lambda function allows the developer to visualize the full execution path and pinpoint where the function behaves unexpectedly.

DAWS CloudTrail

AWS CloudTrail records API calls made to AWS services for auditing and compliance purposes but does not trace application-level execution or capture what happens inside a Lambda function during invocation.

Concept tested: AWS X-Ray active tracing for Lambda debugging

Source: https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html

Community Discussion

No community discussion yet for this question.

Full DVA-C02 Practice