SCS-C02 · Question #391
A company is planning to run a number of Admin related scripts using the AWS Lambda service. There is a need to understand if there are any errors encountered when the script run. How can this be…
The correct answer is A. Use Cloudwatch metrics and logs to watch for errors. 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 also automatically…
Question
A company is planning to run a number of Admin related scripts using the AWS Lambda service. There is a need to understand if there are any errors encountered when the script run. How can this be accomplished in the most effective manner.
Options
- AUse Cloudwatch metrics and logs to watch for errors
- BUse Cloudtrail to monitor for errors
- CUse the AWS Config service to monitor for errors
- DUse the AWS inspector service to monitor for errors
How the community answered
(65 responses)- A74% (48)
- B5% (3)
- C14% (9)
- D8% (5)
Explanation
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 also automatically stores logs generated by your code through Amazon CloudWatch Logs. Option B,C and D are all invalid because these services cannot be used to monitor for errors.
Topics
Community Discussion
No community discussion yet for this question.