CloudWatch Quiz
A company is planning to run a number of Admin related scripts using the AWS Lambda service. There is a need to detect errors that occur while the scripts run. How can this be accomplished in the most effective manner?
A. Use CloudWatch metrics and logs to watch for errors.
B. Use CloudTrail to monitor for errors.
C. Use the AWS Config service to monitor for errors.
D. Use the AWS Inspector service to monitor for errors.
A. Use CloudWatch metrics and logs to watch for errors.
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 also automatically stores logs generated by your code through Amazon CloudWatch Logs.
For more information on Monitoring Lambda functions, please visit the following URL:
https://docs.aws.amazon.com/lambda/latest/dg/monitoring-functions-logs.html