nerdexam
Amazon

SOA-C02 · Question #160

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 includes a purpose-built query language with a few simple but powerful commands. CloudWatch Logs Insights provides sample queries, command descriptions, query autocompletion, and log field discovery to help you get started. Sample queries are included…

Submitted by priya_blr· Mar 30, 2026Monitoring, Logging, and Remediation

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 group. What should a SysOps administrator 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 BY keywords.
  • DPerform an Amazon RDS query that uses the SELECT and GROUP BY keywords.

How the community answered

(49 responses)
  • A
    71% (35)
  • B
    4% (2)
  • C
    16% (8)
  • D
    8% (4)

Explanation

CloudWatch Logs Insights includes a purpose-built query language with a few simple but powerful commands. CloudWatch Logs Insights provides sample queries, command descriptions, query autocompletion, and log field discovery to help you get started. Sample queries are included for several types of AWS service logs. https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AnalyzingLogData.html

Topics

#CloudWatch Logs Insights#stats command#cross-log-group query#error aggregation

Community Discussion

No community discussion yet for this question.

Full SOA-C02 Practice