nerdexam
Amazon

DVA-C02 · Question #382

A developer has written a distributed application that uses microservices. The microservices are running on Amazon EC2 instances. Because of message volume, the developer is unable to match log…

The correct answer is A. Download the AWS X-Ray daemon. Install the daemon on an EC2 instance. Ensure that the EC2 D. Add the AWS X-Ray software development kit (SDK) to the microservices. Use X-Ray to trace. AWS X-Ray enables distributed tracing across microservices by correlating requests with a unique trace ID. Both the X-Ray daemon (which collects and relays trace data) and the X-Ray SDK (which instruments application code) are required.

Submitted by lucia.co· Mar 5, 2026Monitoring and Troubleshooting

Question

A developer has written a distributed application that uses microservices. The microservices are running on Amazon EC2 instances. Because of message volume, the developer is unable to match log output from each microservice to a specific transaction. The developer needs to analyze the message flow to debug the application. Which combination of steps should the developer take to meet this requirement? (Choose two.)

Options

  • ADownload the AWS X-Ray daemon. Install the daemon on an EC2 instance. Ensure that the EC2
  • BConfigure an interface VPC endpoint to allow traffic to reach the global AWS X-Ray daemon on
  • CEnable AWS X-Ray. Configure Amazon CloudWatch to push logs to X-Ray.
  • DAdd the AWS X-Ray software development kit (SDK) to the microservices. Use X-Ray to trace
  • ESet up Amazon CloudWatch metric streams to collect streaming data from the microservices.

How the community answered

(51 responses)
  • A
    75% (38)
  • B
    8% (4)
  • C
    4% (2)
  • E
    14% (7)

Why each option

AWS X-Ray enables distributed tracing across microservices by correlating requests with a unique trace ID. Both the X-Ray daemon (which collects and relays trace data) and the X-Ray SDK (which instruments application code) are required.

ADownload the AWS X-Ray daemon. Install the daemon on an EC2 instance. Ensure that the EC2Correct

The X-Ray daemon must be installed on each EC2 instance; it listens for trace data sent by the SDK and relays it to the X-Ray service, enabling end-to-end request correlation.

BConfigure an interface VPC endpoint to allow traffic to reach the global AWS X-Ray daemon on

AWS X-Ray does not use interface VPC endpoints for a global daemon; the daemon runs locally on the instance and communicates directly with the X-Ray service endpoint.

CEnable AWS X-Ray. Configure Amazon CloudWatch to push logs to X-Ray.

CloudWatch does not push logs into X-Ray; X-Ray receives trace segments from the SDK via the daemon, not from CloudWatch log streams.

DAdd the AWS X-Ray software development kit (SDK) to the microservices. Use X-Ray to traceCorrect

The X-Ray SDK instruments the microservice code to generate and propagate trace IDs and segments, allowing all calls within a transaction to be linked together for analysis.

ESet up Amazon CloudWatch metric streams to collect streaming data from the microservices.

CloudWatch metric streams provide aggregate performance metrics but do not capture per-request trace data needed to correlate messages across microservices.

Concept tested: Distributed tracing with AWS X-Ray SDK and daemon

Source: https://docs.aws.amazon.com/xray/latest/devguide/xray-daemon.html

Community Discussion

No community discussion yet for this question.

Full DVA-C02 Practice