AWS Certified Developer – Associate (DVA-C02) — Question 262
A developer is building a microservices-based application by using Python on AWS and several AWS services. The developer must use AWS X-Ray. The developer views the service map by using the console to view the service dependencies. During testing, the developer notices that some services are missing from the service map.
What can the developer do to ensure that all services appear in the X-Ray service map?
Answer options
- A. Modify the X-Ray Python agent configuration in each service to increase the sampling rate.
- B. Instrument the application by using the X-Ray SDK for Python. Install the X-Ray SDK for all the services that the application uses.
- C. Enable X-Ray data aggregation in Amazon CloudWatch Logs for all the services that the application uses.
- D. Increase the X-Ray service map timeout value in the X-Ray console.
Correct answer: B
Explanation
The correct answer is B because using the X-Ray SDK for Python is essential to properly instrument the application, allowing all services to be included in the service map. Options A, C, and D do not address the core issue of service instrumentation, which is necessary for X-Ray to capture and display all relevant services in the map.