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.

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

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.