AWS Certified Developer – Associate (DVA-C02) — Question 548
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?
Answer options
- 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.
Correct answer: B
Explanation
To send segment data to the AWS X-Ray service, the X-Ray SDK gathers the data and sends it over UDP to the X-Ray daemon, which then buffers and uploads it to X-Ray in batches. Running the X-Ray daemon on the on-premises servers is the simplest and standard way to relay this data to AWS. Using AWS Lambda functions to pull and process requests via PutTraceSegments or PutTelemetryRecords API calls introduces significant and unnecessary configuration overhead.