AWS Certified Developer - Associate Exam DVA-C01: Lambda Function Invocation Analysis

Lambda Function Invocation Analysis

Prev Question Next Question

Question

Your team is developing a series of Lambda functions.

You need to ensure that you analyze the invocations of the functions during the testing phase.

Which of the following tools can help you achieve this? Choose 2 answers from the options given below.

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Answer - A and C.

The AWS Documentation mentions the following.

Option B is incorrect since this is used to check EC2 Instances for vulnerabilities.

Option D is incorrect since this is used to monitor API activity.

For more information on troubleshooting AWS Lambda, please refer to the below URL-

https://docs.aws.amazon.com/lambda/latest/dg/troubleshooting.html
Monitoring and Troubleshooting Lambda Applications

AWS Lambda will automatically track the behavior of your Lambda function invocations and provide feedback that you can monitor. In addition, it provides metrics that allows
you to analyze the full function invocation spectrum, including event source integration and whether downstream resources perform as expected. The following sections provide

guidance on the tools you can use to analyze your Lambda function invocation behavior:
Topics

* Using Amazon CloudWatch
* Using AWS X-Ray

The two tools that can help analyze the invocations of Lambda functions during the testing phase are Amazon CloudWatch and Amazon X-Ray.

Amazon CloudWatch is a monitoring service that can be used to collect and track metrics, collect and monitor log files, and set alarms. It provides a set of metrics and logs for AWS resources, including Lambda functions. By using CloudWatch Logs, developers can collect and monitor logs from Lambda functions, and use CloudWatch Metrics to visualize and analyze the performance and usage of the functions during testing. Developers can also set alarms to alert them when certain thresholds are reached.

Amazon X-Ray is a service that can be used to trace requests made to distributed applications, including AWS resources such as Lambda functions. X-Ray provides a detailed view of the entire application, and can help identify performance bottlenecks, errors, and exceptions. By using X-Ray with Lambda functions, developers can trace the path of requests through the function, and analyze the time taken by each component of the application.

Amazon Inspector and Amazon CloudTrail are not the correct answers for this question. Amazon Inspector is a security assessment service that can be used to identify security vulnerabilities in applications running on AWS. Amazon CloudTrail is a service that can be used to track API calls made to AWS resources, including Lambda functions. While CloudTrail can provide insight into who accessed the Lambda function, it does not provide performance metrics or trace requests through the function.