DVA-C02 Question 354
Select 3You are a developer building a microservices-based application on AWS. You have integrated AWS X-Ray into the application to trace requests between services. However, during testing, you notice that some of the dependencies of your application are not showing up in the X-Ray service map. What could be the possible reasons for this issue?
- A
The X-Ray SDK is not correctly initialized in some of the services.
- B
The IAM role attached to the services lacks the necessary permissions to write trace data to X-Ray.
- C
The services are running in a region where X-Ray is not supported.
- D
The services are generating trace data but are not sending it to the X-Ray daemon.
- E
The X-Ray service map requires integration with Amazon CloudWatch to display all dependencies.
Show answer and explanation
Correct answers: A, B, D
Explanation
To ensure X-Ray service maps display all dependencies correctly, you must confirm that the X-Ray SDK is properly initialized in your application, the services have appropriate IAM permissions, and the trace data is correctly sent to the X-Ray daemon. Missing any of these steps can lead to incomplete or missing dependencies in the service map.
- A. Correct.
Correct: If the X-Ray SDK is not properly initialized, the application will not generate or forward trace data to X-Ray, causing missing dependencies in the service map.
- B. Correct.
Correct: X-Ray requires IAM permissions to write trace data. Without adequate permissions, the services cannot send trace data, leading to missing dependencies.
- C. Incorrect.
Incorrect: X-Ray is supported in most AWS regions. While region availability can be an issue, this is not a common cause for missing dependencies in the service map.
- D. Correct.
Correct: The X-Ray daemon is responsible for collecting and sending trace data to the X-Ray service. If the services are not configured to send data to the daemon, the trace data will not appear in the service map.
- E. Incorrect.
Incorrect: The X-Ray service map does not require Amazon CloudWatch integration to display dependencies. It uses trace data from the X-Ray service to automatically generate the map.