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
- A. The X-Ray daemon is not installed on each EC2 instance.
- B. The GetServiceGraph API operation is providing a StartTime value and an EndTime value that are older than 30 days.
- C. X-Ray trace data is not available for querying for 30 minutes after it is captured.
- D. The developer’s IAM policy contains the AWSXRayReadOnlyAccess managed policy.
- E. The GetServiceGraph API operation does not include an EndTime value.
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.