An AWS Lambda function is intermittently failing several times a day. A SysOps administrator must find out how often this error has occurred in the last 7 days. Which action will meet this requirement in the MOST operationally efficient manner?
A.
Use Amazon Athena to query the Amazon CloudWatch logs that are associated with the Lambda function.
B.
Use Amazon Athena to query the AWS CloudTrail logs that are associated with the Lambda function.
C.
Use Amazon CloudWatch Logs Insights to query the associated Lambda function logs.
D.
Use Amazon OpenSearch Service (Amazon Elasticsearch Service) to stream the Amazon CloudWatch logs for the Lambda function.
why not A :
Using Amazon Athena to query CloudWatch logs could work, but it introduces additional complexity by setting up and managing Athena.
why not B :
Querying AWS CloudTrail logs is primarily for tracking API activity and resource changes. It might not provide the same level of visibility into Lambda function errors
Log insights is the easiest way to access this info. Athen doesn't query CW logs directly. Using this will require exporting CW logs, uploading to S3, creating a table which is least optimal solution. Therefore C
Well it doesnt makes sense to be A since it would be needed to configure a Bucket for the logs plus setting up Athena for querying the Bucket. I'm going for C.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
jipark
Highly Voted 1 year, 8 months agoprincajen
Highly Voted 2 years, 7 months agoauxwww
Most Recent 10 months agostoy123
1 year, 2 months agohexie
1 year, 10 months agomichaldavid
2 years, 4 months agoLiongeek
2 years, 5 months agoSurferbolt
2 years, 6 months agoRick365
2 years, 7 months ago