AWS Certified Developer – Associate (DVA-C02) — Question 306
A company has an application that runs across multiple AWS Regions. The application is experiencing performance issues at irregular intervals. A developer must use AWS X-Ray to implement distributed tracing for the application to troubleshoot the root cause of the performance issues.
What should the developer do to meet this requirement?
Answer options
- A. Use the X-Ray console to add annotations for AWS services and user-defined services.
- B. Use Region annotation that X-Ray adds automatically for AWS services. Add Region annotation for user-defined services.
- C. Use the X-Ray daemon to add annotations for AWS services and user-defined services.
- D. Use Region annotation that X-Ray adds automatically for user-defined services. Configure X-Ray to add Region annotation for AWS services.
Correct answer: B
Explanation
AWS X-Ray automatically populates Region annotations for metadata associated with standard AWS resources and services. However, for custom or user-defined services, developers must explicitly add Region annotations in their trace data to segment and filter multi-region performance issues. The X-Ray daemon and console do not have the capability to automatically inject these custom annotations.