SOA-C03 · Question #125
A company has a critical serverless application that uses multiple AWS Lambda functions. Each Lambda function generates 1 GB of log data daily in its own Amazon CloudWatch Logs log group. The…
The correct answer is A. Perform a CloudWatch Logs Insights query that uses the stats command and count function. CloudWatch Logs Insights is purpose-built for querying and aggregating log data across multiple log groups. Using the stats command with the count() function allows the CloudOps engineer to efficiently group and count specific error types from all Lambda log groups in one…
Question
A company has a critical serverless application that uses multiple AWS Lambda functions. Each Lambda function generates 1 GB of log data daily in its own Amazon CloudWatch Logs log group. The company’s security team asks for a count of application errors, grouped by type, across all of the log groups. What should a CloudOps engineer do to meet this requirement?
Options
- APerform a CloudWatch Logs Insights query that uses the stats command and count function.
- BPerform a CloudWatch Logs search that uses the groupby keyword and count function.
- CPerform an Amazon Athena query that uses the SELECT and GROUP BV keywords.
- DPerform an Amazon RDS query that uses the SELECT and GROUP BY keywords.
How the community answered
(61 responses)- A74% (45)
- B15% (9)
- C5% (3)
- D7% (4)
Explanation
CloudWatch Logs Insights is purpose-built for querying and aggregating log data across multiple log groups. Using the stats command with the count() function allows the CloudOps engineer to efficiently group and count specific error types from all Lambda log groups in one query, providing an aggregated view of application errors with minimal effort and without data export or external
Topics
Community Discussion
No community discussion yet for this question.