Answer - A and C.
You need to have the daemon service running on the EC2 Instance.
And a role needs to be attached to the EC2 Instance.
Running the X-Ray Daemon on Amazon EC2
You can run the X-Ray daemon on the following operating systems on Amazon EC2.
Amazon Linux.
Ubuntu.
Windows Server (2012 R2 and newer)
Use an instance profile to grant the daemon permission to upload trace data to X-Ray.
For more information, see Giving the Daemon Permission to Send Data to X-Ray.
Option B is incorrect since the agent can be installed on different types of instances.
Option D is incorrect since the traces need to be sent to the X-Ray service.