A developer is deploying a serverless application using AWS SAM. The application includes an API Gateway REST API and several Lambda functions. The developer wants to enable X-Ray tracing to debug performance issues. What is the MINIMUM set of actions required to enable X-Ray tracing for the entire application?
This enables X-Ray for all functions and API Gateway, and the policy allows the Lambda function to send traces.
Why this answer
Option A is correct. In AWS SAM, you can enable X-Ray globally by setting Tracing: Active in the Globals section, and the Lambda execution role needs the AWSXRayDaemonWriteAccess managed policy. Option B is wrong because enabling tracing on each function individually is more work but still achieves the goal, but the question asks for MINIMUM.
Option C is wrong because API Gateway tracing alone does not trace Lambda. Option D is wrong because deploying the X-Ray daemon is not required for Lambda functions; the managed policy includes the daemon.