You have a distributed microservices application running on EC2, and message volumes make it hard to correlate logs across services for a given transaction. You need to trace requests through the services to analyze message flow. Which combination of steps should you take? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: Install the AWS X-Ray daemon on an EC2 instance and allow UDP traffic on port 2000 to that instance., Add the AWS X-Ray SDK to each microservice so X-Ray can trace requests made by the services..
Why this is the answer
To trace requests across microservices with AWS X-Ray, you need two main components. First, the AWS X-Ray SDK must be integrated into each microservice. This SDK instruments your code, captures metadata about requests, and sends trace data to the X-Ray daemon. Second, the AWS X-Ray daemon needs to be running on an EC2 instance to collect this raw segment data from the SDKs and relay it to the X-Ray service. The daemon listens for UDP traffic on port 2000. Incorrect options: Configuring an interface VPC endpoint for X-Ray is not for a "global AWS X-Ray daemon" and X-Ray communication typically uses HTTPS, not TCP port 2000 for the service endpoint. The daemon uses UDP port 2000. AWS X-Ray and CloudWatch are distinct services; CloudWatch logs are not pushed into X-Ray for tracing purposes. X-Ray generates its own trace data. Amazon CloudWatch metric streams are for collecting metrics, not for distributed tracing of requests.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed