AWS Certified Developer – Associate — Question 189

A company manages a microservices application on Amazon EC2 instances. A developer has integrated the AWS X-Ray SDK with the application. The developer also has an IAM role that is associated with the EC2 instances. The role includes the AWSXRayDaemonWriteAccess managed IAM policy.

When the developer queries the X-Ray traces by using the GetServiceGraph API operation, no errors and no trace data are returned.

What could be the reason that no X-Ray trace data is being returned? (Choose two.)

Answer options

Correct answer: A, B

Explanation

The correct answers are A and B because if the X-Ray daemon is not installed on each EC2 instance, traces cannot be collected. Additionally, if the provided StartTime and EndTime are older than 30 days, the data will not be available, as X-Ray only retains traces for a limited time. Options C, D, and E do not directly address the reason for the absence of trace data in this scenario.