Q65 — AWS DVA-C02 Ch.2
Question 65 of 100 | ← Chapter 2
A company runs a custom application on an on-premises Linux server, accessed via Amazon API Gateway. AWS X-Ray tracing has been enabled during API testing. How can a developer enable X-Ray tracing on the on-premises server with minimal configuration?
- A. Install and run the X-Ray SDK on the on-premises server to capture and relay data to the X-Ray service.
- B. Install and run the X-Ray daemon on the on-premises server to capture and relay data to the X-Ray service. ✓
- C. Capture incoming requests locally and configure an AWS Lambda function to pull, process, and relay related data to X-Ray using the PutTraceSegments API.
- D. Capture incoming requests locally and configure an AWS Lambda function to pull, process, and relay related data to X-Ray using the PutTelemetryRecords API.
Correct Answer: B. Install and run the X-Ray daemon on the on-premises server to capture and relay data to the X-Ray service.
Explanation
To enable X-Ray tracing on an on-premises server with minimal configuration, option B—installing and running the X-Ray daemon—is optimal. The X-Ray daemon is a lightweight process installable on application servers to capture request and response data and relay it to the X-Ray service. This enables distributed tracing without modifying application code. Option A refers to the X-Ray SDK, typically embedded in application code. Options C and D introduce unnecessary complexity by involving Lambda functions for data relaying. Thus, option B is the best choice for minimal-configuration on-premises X-Ray tracing.