DVA-C02 · Question #337
DVA-C02 Question #337: Real Exam Question with Answer & Explanation
The correct answer is B: Instrument the application by using the X-Ray SDK for Python. Install the X-Ray SDK for all the. AWS X-Ray requires the X-Ray SDK to be installed and used to instrument each service so that traces are generated and the service map is populated.
Question
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?
Options
- AModify the X-Ray Python agent configuration in each service to increase the sampling rate.
- BInstrument the application by using the X-Ray SDK for Python. Install the X-Ray SDK for all the
- CEnable X-Ray data aggregation in Amazon CloudWatch Logs for all the services that the
- DIncrease the X-Ray service map timeout value in the X-Ray console.
Explanation
AWS X-Ray requires the X-Ray SDK to be installed and used to instrument each service so that traces are generated and the service map is populated.
Common mistakes.
- A. Increasing the sampling rate affects how many requests are traced, but a service that is not instrumented at all will never appear on the map regardless of the sampling rate.
- C. X-Ray does not aggregate trace data from CloudWatch Logs; services must emit segments directly to the X-Ray daemon or endpoint via the SDK.
- D. There is no configurable service map timeout value in the X-Ray console; missing services are always caused by missing instrumentation, not a timeout setting.
Concept tested. AWS X-Ray SDK instrumentation for service map visibility
Reference. https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-python.html
Community Discussion
No community discussion yet for this question.