Skip to Content

DVA-C02: How to Enable AWS X-Ray Tracing on On-Premises Linux Servers

Learn how to use AWS X-Ray to trace and analyze the performance of your custom application running on on-premises Linux servers. Find out the easiest way to capture and relay the data to the X-Ray service using the X-Ray daemon.

Table of Contents

Question

A company is running a custom application on a set of on-premises Linux servers that are accessed using Amazon API Gateway. AWS X-Ray tracing has been enabled on the API test stage.

How can a developer enable X-Ray tracing on the on-premises servers with the LEAST amount of configuration?

A. Install and run the X-Ray SDK on the on-premises servers to capture and relay the data to the X-Ray service.

B. Install and run the X-Ray daemon on the on-premises servers to capture and relay the data to the X-Ray service.

C. Capture incoming requests on-premises and configure an AWS Lambda function to pull, process, and relay relevant data to X-Ray using the PutTraceSegments API call.

D. Capture incoming requests on-premises and configure an AWS Lambda function to pull, process, and relay relevant data to X-Ray using the PutTelemetryRecords API call.

Answer

B. Install and run the X-Ray daemon on the on-premises servers to capture and relay the data to the X-Ray service.

Explanation

The answer to the question is B. Install and run the X-Ray daemon on the on-premises servers to capture and relay the data to the X-Ray service.

To enable X-Ray tracing on the on-premises servers, the developer needs to install and run the X-Ray daemon on each server that runs the custom application. The X-Ray daemon is a software agent that listens for traffic on UDP port 2000, gathers raw segment data, and relays it to the X-Ray service. The developer also needs to instrument the application code with the X-Ray SDK to generate segments and subsegments that represent the work done by the application.

Option A is incorrect because installing and running the X-Ray SDK alone is not enough to enable X-Ray tracing on the on-premises servers. The X-Ray SDK requires the X-Ray daemon to be running on the same server to send the data to the X-Ray service.

Option C is incorrect because capturing incoming requests on-premises and configuring an AWS Lambda function to pull, process, and relay relevant data to X-Ray using the PutTraceSegments API call is not a feasible solution. The PutTraceSegments API call requires a valid trace ID and segment documents that conform to the X-Ray segment format. The developer would have to implement a custom logic to generate these parameters from the incoming requests, which would add complexity and overhead to the application.

Option D is incorrect because capturing incoming requests on-premises and configuring an AWS Lambda function to pull, process, and relay relevant data to X-Ray using the PutTelemetryRecords API call is not a valid solution. The PutTelemetryRecords API call is used by the X-Ray daemon to send telemetry data about segments received and uploaded. It does not send segment data itself, which is needed for tracing.

The latest AWS Certified Developer – Associate DVA-C02 certification actual real practice exam question and answer (Q&A) dumps are available free, which are helpful for you to pass the AWS Certified Developer – Associate DVA-C02 exam and earn AWS Certified Developer – Associate DVA-C02 certification.

AWS Certified Developer - Associate DVA-C02 Exam Questions and Answers