AWS Certified Developer – Associate (DVA-C02) — Question 176
A developer is working on a Python application that runs on Amazon EC2 instances. The developer wants to enable tracing of application requests to debug performance issues in the code.
Which combination of actions should the developer take to achieve this goal? (Choose two.)
Answer options
- A. Install the Amazon CloudWatch agent on the EC2 instances.
- B. Install the AWS X-Ray daemon on the EC2 instances.
- C. Configure the application to write JSON-formatted logs to /var/log/cloudwatch.
- D. Configure the application to write trace data to /var/log/xray.
- E. Install and configure the AWS X-Ray SDK for Python in the application.
Correct answer: B, E
Explanation
The correct actions are B and E because installing the AWS X-Ray daemon allows the application to send trace data, and integrating the AWS X-Ray SDK for Python enables the application to generate trace information. Options A, C, and D are not relevant for tracing application requests in this context.