You are debugging a Java-based AWS Lambda function and want to use request tracing to diagnose issues. Which AWS service should you use to collect and view trace data for Lambda invocations?
Choose an answer
Tap an option to check your answer.
Correct answer: AWS X-Ray.
Why this is the answer
AWS X-Ray is the correct service for collecting and viewing trace data for Lambda invocations, especially for debugging performance issues and understanding the flow of requests through distributed applications. It provides an end-to-end view of requests as they travel through various services. AWS Trusted Advisor offers recommendations for optimizing cost, performance, security, and fault tolerance, but it does not provide request tracing. Amazon CloudWatch is used for monitoring, logging, and metrics, which can include Lambda invocation metrics and logs, but it doesn't offer the detailed request tracing capabilities of X-Ray. AWS CloudTrail records API calls and events made in your AWS account for auditing and security analysis, not for application-level request tracing.
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