Correct Answer – C
You can use the X-Ray SDK with the following Elastic Beanstalk platforms:
Go - version 2.9.1 and later
Java 8 - version 2.3.0 and later
Java 8 with Tomcat 8 - version 2.4.0 and later
Node.js - version 3.2.0 and later
Windows Server - all platform versions released on or after December 18th, 2016
Python - version 2.5.0 and later
On supported platforms, you can use a configuration option to run the X-Ray daemon on the instances in your environment. You can enable the daemon in the Elastic Beanstalk console or by using a configuration file.
If the X-Ray daemon isn`t available for your platform configuration, you can download it from Amazon S3 and run it with a configuration file.
Option A is incorrect as this process is used for non-supported Platforms. AWS X-Ray Daemon can be installed with AWS Elastic Beanstalk by downloading from the Amazon S3 bucket.
Option B is incorrect as AWS X-Ray agents are used for EC2/ECS instances & not with AWS Elastic Beanstalk.
Option C is correct as the AWS Elastic Beanstalk console can be used to integrate AWS X-Ray for supported platforms.
Option D is incorrect as there is no need to install anything on EC2. Elastic Beanstalk can be integrated with AWS X-Ray from the console.
For more information on AWS X-Ray, refer to the following URLs-
https://docs.aws.amazon.com/xray/latest/devguide/xray-daemon-configuration.html
https://docs.aws.amazon.com/xray/latest/devguide/xray-daemon-beanstalk.html