4

I am preparing for AWS exam and I found some documentation about AWS CloudTrail and AWS X-RAY where it creates confusion on their usage requirement.

I have came across following question where requirement was to trace and analyse the user request as it travels through Amazon API Gateway APIs to underlying services. enter image description here

As per my understanding, we can use CludTrail to trace and analyse the user request. But the correct answer was AWS XRAY.

The documents which have referred mentions that, we can use AWS CloudTrail logs for tracing,Security Analysis, Resource Change Tracking and Compliance/Auditing. On the other hand, we can use AWS X-RAY to analyse and debug applications running on distributed micro service architecture.

XRAY and CloudTrail usage both have the term Analyse and trace. So it is quite confusing to which service should we choose under such requirement to trace and analyse the user request

Gunjan Shah
  • 5,088
  • 16
  • 53
  • 72

1 Answers1

3

X-Ray is more detailed in the information it provides for the request's flow and state. It scans the request all the way through its lifetime from when it is received in the api gateway to whatever services are called and executed after that. So I imagine that is why it is the preferred option.

DNakevski
  • 300
  • 1
  • 7
  • 3
    To add to your answer, the key is that X-Ray is a tracing solution whereas cloud trail is an auditing solution. – Rohit Banga Dec 20 '19 at 23:17