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.html