An application runs across multiple AWS Regions and shows intermittent performance problems. A developer must implement distributed tracing with AWS X-Ray to find the root cause. What should the developer do regarding Region annotations so tracing works correctly across AWS services and the application's own services?
Choose an answer
Tap an option to check your answer.
Correct answer: Rely on the Region annotation that X-Ray adds automatically for AWS services, and add a Region annotation for your user-defined services..
Why this is the answer
X-Ray automatically adds Region annotations for AWS services, such as EC2 instances or S3 buckets, when it traces requests through them. This built-in functionality ensures that the geographical location of these AWS resources is captured without manual intervention. For custom, user-defined services within your application, you need to explicitly add Region annotations in your code using the X-Ray SDK. This allows X-Ray to accurately map the flow of requests across different regions, providing a complete distributed trace that includes both AWS and your application's components. The X-Ray console is for viewing and analyzing traces, not for adding annotations. The X-Ray daemon collects trace data but does not add annotations itself; annotations are added by the X-Ray SDK in your application code.
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