A Lambda function is intermittently failing multiple times per day. A SysOps administrator needs to determine how many times this error occurred over the past 7 days with the least operational effort. Which approach is the most efficient?
Choose an answer
Tap an option to check your answer.
Correct answer: Use Amazon CloudWatch Logs Insights to query the Lambda function’s CloudWatch Logs..
Why this is the answer
CloudWatch Logs Insights is the most efficient solution because it allows you to interactively query and analyze your CloudWatch Logs data directly within the CloudWatch console, without needing to move data or set up additional services. It's designed for ad-hoc analysis of log data, making it ideal for quickly identifying error counts over a specified period. Running Athena queries against CloudWatch Logs (via S3 export) or CloudTrail logs would involve more setup and data processing. CloudTrail logs record API calls, not application-level errors within the Lambda function itself. Streaming logs to OpenSearch Service would also require significant setup and ongoing management, which is overkill for a simple error count over 7 days.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed