Correct answer - "Enable X-Ray sampling" : To ensure efficient tracing and provide a
representative sample of the requests that your application serves, the X-Ray SDK applies a
sampling algorithm to determine which requests get traced. By default, the X-Ray SDK records the
first request each second, and five percent of any additional requests. X-Ray sampling is
enabled directly from the AWS console, hence your application code does not need to hcange.
"Filter the amount of data sent client side" - This would require a lot of code changes and would
be hard to maintain
"Custom configuration for the X-Ray agents" - Y ou cannot do a custom configuration instead you
can do custom sample rules
"Implement a network security rule" - Not applicable with X-Ray, won't help with sampling