Q20 — AWS DVA-C02 Ch.2

Question 20 of 100 | ← Chapter 2

A developer is building a microservices-based application on AWS using Python and several AWS services. The developer intends to use AWS X-Ray. Using the console, the developer views service dependencies and the service map. During testing, the developer notices some services are missing from the service map. What should the developer do to ensure all services appear in the X-Ray service map?

Correct Answer: B. Instrument the application using the X-Ray SDK for Python. Install the X-Ray SDK for all services used by the application.

Explanation

Option B is correct: To appear in the X-Ray service map, each service must be instrumented with the X-Ray SDK. The SDK captures and emits trace data (segments and subsegments) representing incoming requests, downstream calls, and errors. Without instrumentation, no trace data is generated — hence services remain invisible. Increasing sampling (A) only affects volume of traces, not visibility of uninstrumented services. CloudWatch Logs (C) does not aggregate X-Ray trace data; X-Ray uses its own backend. Timeout adjustments (D) affect UI rendering, not data collection.