Skip to Content

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

Learn how to use the X-Ray daemon to enable AWS X-Ray tracing on your on-premises Linux servers with minimal configuration. Understand the benefits of using X-Ray to monitor and troubleshoot your applications across different environments.

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 correct answer 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 X-Ray daemon also adds information about the EC2 instance to each segment, such as the instance ID and availability zone.

The other options are incorrect for the following reasons:

  • Option A is incorrect because the X-Ray SDK is not enough to enable X-Ray tracing on the on-premises servers. The X-Ray SDK is a set of libraries for different languages that enable instrumentation of the application code to generate and send segment documents to the X-Ray daemon. The X-Ray SDK does not relay the data to the X-Ray service by itself; it needs the X-Ray daemon to do so.
  • Option C is incorrect because it involves unnecessary complexity and latency. 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 would require additional steps and resources, such as setting up an API endpoint, triggering a Lambda function, parsing and filtering the request data, and making an API call to X-Ray. This would also introduce additional overhead and delay in sending the data to X-Ray.
  • Option D is incorrect because it uses the wrong API call. The PutTelemetryRecords API call is used to send aggregated statistics about segments that were processed by the X-Ray daemon, such as error rates and response times. It is not used to send segment documents that contain information about individual requests.

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