Correct answers -
"Deploy the X-Ray daemon agent as a sidecar container" : As we are using AWS Fargate, we do not
have control over the underlying EC2 instance and thus we can't deploy the agent on the EC2
instance or run an X-Ray agent container as a daemon set (only available for ECS classic).
"Provide the correct IAM task role to the X-Ray container" : For Fargate, we can only provide IAM
roles to tasks, which is also a best security practice should we use EC2 instances.