How can a developer enable X-Ray tracing on the on-premises servers with the LEAST amount of configuration?
Install and run the X-Ray SDK on the on-premises servers to capture and relay the data to the X-Ray service.
Install and run the X-Ray daemon on the on-premises servers to capture and relay the data to the X-Ray service.
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.
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.
Explanations:
The X-Ray SDK is designed for instrumenting applications to capture trace data and send it to the X-Ray service. However, it does not directly relay the data; the SDK requires a daemon to send the data, making it less optimal for minimal configuration.
The X-Ray daemon is a service that runs on the server, captures trace data, and sends it to the X-Ray service. Installing and running the daemon on the on-premises servers requires minimal configuration and is the most efficient way to enable tracing for existing applications.
This option involves creating a Lambda function to pull and process trace data, which adds complexity and requires additional configuration for both the Lambda function and the data relay process, making it less efficient.
Similar to option C, this involves setting up a Lambda function to relay telemetry data to X-Ray, which is more complex than necessary for enabling tracing and requires additional configuration, thus not minimizing the setup.