SOA-C02 · Question #441
A SysOps administrator must analyze Amazon CloudWatch logs across 10 AWS Lambda functions for historical errors. The logs are in JSON format and are stored in Amazon S3. Errors sometimes do not…
The correct answer is C. Use Amazon CloudWatch Logs Insights to write a query to search for errors. Run the query. CloudWatch Logs Insights automatically discovers fields in logs from AWS services such as Amazon Route 53, AWS Lambda, AWS CloudTrail, and Amazon VPC, and any application or custom log that emits log events as JSON.
Question
A SysOps administrator must analyze Amazon CloudWatch logs across 10 AWS Lambda functions for historical errors. The logs are in JSON format and are stored in Amazon S3. Errors sometimes do not appear in the same field, but all errors begin with the same string prefix. What is the MOST operationally efficient way for the SysOps administrator to analyze the log files?
Options
- AUse S3 Select to write a query to search for errors. Run the query across all log groups of
- BCreate an AWS Glue processing job to index the logs of interest. Run a query in Amazon Athena
- CUse Amazon CloudWatch Logs Insights to write a query to search for errors. Run the query
- DUse Amazon CloudWatch Contributor Insights to create a rule. Apply the rule across all log
How the community answered
(29 responses)- A10% (3)
- B7% (2)
- C79% (23)
- D3% (1)
Explanation
CloudWatch Logs Insights automatically discovers fields in logs from AWS services such as Amazon Route 53, AWS Lambda, AWS CloudTrail, and Amazon VPC, and any application or custom log that emits log events as JSON.
Topics
Community Discussion
No community discussion yet for this question.