Topic 1 Question 304
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?
Use S3 Select to write a query to search for errors. Run the query across all log groups of interest.
Create an AWS Glue processing job to index the logs of interest. Run a query in Amazon Athena to search for errors.
Use Amazon CloudWatch Logs Insights to write a query to search for errors. Run the query across all log groups of interest.
Use Amazon CloudWatch Contributor Insights to create a rule. Apply the rule across all log groups of interest.
ユーザの投票
コメント(17)
- 正解だと思う選択肢: B
I vote for B. Seems to me this is the right answer. https://docs.aws.amazon.com/athena/latest/ug/glue-athena.html
Why not A Looks like S3 select has several limitations. https://docs.aws.amazon.com/AmazonS3/latest/userguide/selecting-content-from-objects.html According to the question "Errors sometimes do not appear in the same field". So I assume we need more advanced tool.
Why not C,D Both Amazon CloudWatch Logs Insights and Amazon CloudWatch Contributor Insights process logs from AWS CloudWatch log groups. But in our case we have logs stored on S3. https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights-CreateRule.html https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AnalyzingLogData.html
👍 5xSohox2023/08/23 B. Create an AWS Glue processing job to index the logs of interest. Run a query in Amazon Athena to search for errors. Since the logs are stored in Amazon S3, using AWS Glue to create a processing job to index the logs and then querying them using Amazon Athena is the most operationally efficient way to analyze the log files. AWS Glue is a serverless data integration service that can discover, prepare, and combine data for analytics, machine learning, and application development. Amazon Athena is an interactive query service that makes it easy to analyze data in Amazon S3 using standard SQL. This combination allows the SysOps administrator to efficiently search for errors across the logs from multiple AWS Lambda functions.
👍 3Freshtimi2023/06/14- 正解だと思う選択肢: B
"AWS Glue is a serverless data integration service that can discover, prepare, and combine data for analytics, machine learning, and application development. Amazon Athena is an interactive query service that makes it easy to analyze data in Amazon S3 using standard SQL." from Freshtimi down here To query logs stored in Amazon S3, you may need to use Amazon Athena, which is a service designed for querying data in S3. You can use AWS Glue to catalog and prepare the logs in S3, and then query them using Athena. https://docs.aws.amazon.com/athena/latest/ug/glue-athena.html
👍 3TwinSpark2023/09/27
シャッフルモード