QuestionQ80

VerifiedTroubleshooting and Optimization

A developer created an application that uses AWS Lambda functions for image processing. The developer wants to improve image-processing times during the day.

The developer must create an Amazon CloudWatch Logs Insights query that displays the average, slowest, and fastest processing times in 1-minute intervals.

Which query satisfies these requirements?

Explanation

Lambda invocation summary records are REPORT log events and include the @duration field. Filtering for @type = "REPORT", calculating avg(@duration), max(@duration), and min(@duration), and grouping by bin(1m) returns the required average, slowest, and fastest durations for each one-minute interval.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!