You've just created an AWS Lambda function.
You're running the function, but the output of the function is not as expected.
You need to check and see what the issue is.
Which of the following can help the developer debug the issue with the Lambda function?
Click on the arrows to vote for the correct answer
A. B. C. D.Answer - A.
The AWS Documentation mentions the following.
AWS Lambda automatically monitors Lambda functions on your behalf, reporting metrics through Amazon CloudWatch.
To help you troubleshoot failures in a function, Lambda logs all requests handled by your function and automatically stores logs generated by your code through Amazon CloudWatch Logs.
Option B is incorrect because VPC Flow Logs is a feature that enables you to capture information about the IP traffic going to and from network interfaces in your VPC.Option C is incorrect because AWS Trusted Advisor is an online tool that provides you real-time guidance to help you provision your resources following AWS best practices.
It cannot be used to debug Lambda functions.
Option D is incorrect because Amazon Inspector is an automated security assessment service that helps improve the security and compliance of applications deployed on AWS.
It is not a troubleshooting tool for the Lambda function.
For more information on monitoring functions, please refer to the below link-
https://docs.aws.amazon.com/lambda/latest/dg/monitoring-functions-logs.htmlThe correct answer is A. Check CloudWatch logs.
When developing AWS Lambda functions, it's important to have a way to debug issues that may arise. AWS provides several tools for debugging Lambda functions, but the most common one is CloudWatch logs.
CloudWatch is a monitoring and logging service provided by AWS. When you create a Lambda function, AWS automatically sets up a CloudWatch log group for that function. Every time the function runs, it generates logs that are sent to the log group.
To check the logs, you can go to the AWS Management Console, navigate to the CloudWatch service, and then select the log group associated with your Lambda function. From there, you can view the logs in real-time and search for specific events or error messages.
VPC Flow Logs are used to capture information about IP traffic going to and from network interfaces in a VPC, and can be used to diagnose connectivity issues. However, they are not related to debugging Lambda functions.
AWS Trusted Advisor is a service that provides recommendations to help optimize your AWS infrastructure, but it does not provide debugging tools for Lambda functions.
AWS Inspector is a security assessment service that helps you identify security issues in your AWS resources, but it also does not provide debugging tools for Lambda functions.
Therefore, the correct answer is A. Check CloudWatch logs.