SOA-C03 · Question #12
An AWS Lambda function is intermittently failing several times a day. A CloudOps engineer must find out how often this error occurred in the last 7 days. Which action will meet this requirement in the
The correct answer is C. Use Amazon CloudWatch Logs Insights to query the associated Lambda function logs.. The AWS Cloud Operations and Monitoring documentation states that Amazon CloudWatch Logs Insights provides a purpose-built query engine for analyzing and visualizing log data directly within CloudWatch. For Lambda, all invocation results (including errors) are automatically logge
Question
An AWS Lambda function is intermittently failing several times a day. A CloudOps engineer must find out how often this error occurred in the last 7 days. Which action will meet this requirement in the MOST operationally efficient manner?
Options
- AUse Amazon Athena to query the Amazon CloudWatch logs that are associated with the Lambda
- BUse Amazon Athena to query the AWS CloudTrail logs that are associated with the Lambda
- CUse Amazon CloudWatch Logs Insights to query the associated Lambda function logs.
- Dadds unnecessary operational complexity.
How the community answered
(33 responses)- A9% (3)
- B3% (1)
- C82% (27)
- D6% (2)
Explanation
The AWS Cloud Operations and Monitoring documentation states that Amazon CloudWatch Logs Insights provides a purpose-built query engine for analyzing and visualizing log data directly within CloudWatch. For Lambda, all invocation results (including errors) are automatically logged to CloudWatch Logs. By querying these logs with CloudWatch Logs Insights, the CloudOps engineer can efficiently count the number of "ERROR" or "Exception" occurrences over the past 7 days using simple SQL-like commands. This method is serverless, cost-efficient, and real-time. Athena (Options A and B) would require exporting data to Amazon S3, and OpenSearch (Option Thus, Option C provides the most efficient and native AWS CloudOps approach for rapid Lambda
Topics
Community Discussion
No community discussion yet for this question.