Q47 — AWS DVA-C02 Ch.2
Question 47 of 100 | ← Chapter 2
A developer needs to analyze performance issues in a distributed production application implemented as AWS Lambda functions. These distributed Lambda applications invoke other components of the application. How should the developer identify and troubleshoot the root cause of performance issues in the production environment?
- A. Add logging statements in the Lambda functions and then use Amazon CloudWatch to view the logs.
- B. Use AWS CloudTrail and then examine the logs.
- C. Use AWS X-Ray and then examine segments and errors. ✓
- D. Run the Amazon Inspector agent and then analyze performance.
Correct Answer: C. Use AWS X-Ray and then examine segments and errors.
Explanation
AWS X-Ray is a distributed tracing service provided by AWS to help developers analyze and debug performance issues in distributed applications. By integrating AWS X-Ray into Lambda functions, you can generate segments that capture function invocations, errors, and latency. This enables easy identification and troubleshooting of the root cause of performance issues. Other options (A, B, D) provide logging and monitoring capabilities, but AWS X-Ray is purpose-built for performance analysis of distributed applications and is best suited for this scenario. 【Lantern Certification provided by: swufelp1999】