SOA-C03 · Question #125
SOA-C03 Question #125: Real Exam Question with Answer & Explanation
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 query,
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.
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
Community Discussion
No community discussion yet for this question.