AWS Certified Developer – Associate — Question 389

A developer must use AWS X-Ray to monitor an application that is running on an Amazon EC2 instance. The developer has prepared the application by using the
X-Ray SDK.
What should the developer do to perform the monitoring?

Answer options

Correct answer: B

Explanation

To successfully transmit trace data from an Amazon EC2 instance to AWS X-Ray, the X-Ray daemon must be installed and running on the instance to collect data from the X-Ray SDK. Additionally, the EC2 instance must be associated with an IAM role containing permissions (such as the AWSXRayDaemonWriteAccess policy) to upload this data to the X-Ray service. Other options are incorrect because there is no XRayEnabled attribute for EC2 instances, and X-Ray trace data is sent directly to the X-Ray API via the daemon rather than through Amazon EventBridge.