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.

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

Alex Lim is a certified IT Technical Support Architect with over 15 years of experience in designing, implementing, and troubleshooting complex IT systems and networks. He has worked for leading IT companies, such as Microsoft, IBM, and Cisco, providing technical support and solutions to clients across various industries and sectors. Alex has a bachelor’s degree in computer science from the National University of Singapore and a master’s degree in information security from the Massachusetts Institute of Technology. He is also the author of several best-selling books on IT technical support, such as The IT Technical Support Handbook and Troubleshooting IT Systems and Networks. Alex lives in Bandar, Johore, Malaysia with his wife and two chilrdren. You can reach him at [email protected] or follow him on Website | Twitter | Facebook

    Ads Blocker Image Powered by Code Help Pro

    Your Support Matters...

    We run an independent site that is committed to delivering valuable content, but it comes with its challenges. Many of our readers use ad blockers, causing our advertising revenue to decline. Unlike some websites, we have not implemented paywalls to restrict access. Your support can make a significant difference. If you find this website useful and choose to support us, it would greatly secure our future. We appreciate your help. If you are currently using an ad blocker, please consider disabling it for our site. Thank you for your understanding and support.