A microservices application written in Python uses AWS X-Ray. Some services are not appearing on the X-Ray service map during testing. What should the developer do to ensure all services show up in the X-Ray service map?
Choose an answer
Tap an option to check your answer.
Correct answer: Instrument each service by installing and using the X-Ray SDK for Python across all services..
Why this is the answer
To ensure all services appear on the X-Ray service map, each service must be explicitly instrumented. This involves installing the X-Ray SDK for Python and integrating it into the service's code to send trace data to X-Ray. Without instrumentation, X-Ray cannot collect data from a service, and therefore it will not appear on the service map. Adjusting the sampling rate would only affect how many traces are recorded from already-instrumented services, not make uninstrumented services appear. Enabling X-Ray data aggregation in CloudWatch Logs is not the mechanism for services to appear on the X-Ray service map; X-Ray receives trace data directly from SDKs. Increasing the service map timeout setting in the X-Ray console would not resolve the issue of missing services, as it pertains to the display duration of the map, not data collection.
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