nerdexam
Amazon

DVA-C02 · Question #468

A developer built an application that uses AWS Lambda functions to process images. The developer wants to improve image processing times throughout the day. The developer needs to create an Amazon…

The correct answer is A. filter @type = "REPORT" | stats avg(@duration), max(@duration), min(@duration) by bin(1m). Option A is correct because AWS Lambda automatically generates log entries with @type = 'REPORT' that contain execution metadata including @duration (the actual function execution time). Using bin(1m) groups the results into 1-minute intervals, and the stats functions avg()…

Submitted by rania.sa· Mar 5, 2026Development with AWS Services - Monitoring and troubleshooting serverless applications using CloudWatch Logs Insights queries and Lambda execution metrics

Question

A developer built an application that uses AWS Lambda functions to process images. The developer wants to improve image processing times throughout the day. The developer needs to create an Amazon CloudWatch Logs Insights query that shows the average, slowest, and fastest processing time in 1-minute intervals. Which query will meet these requirements? A. B. C. D.

Options

  • Afilter @type = "REPORT" | stats avg(@duration), max(@duration), min(@duration) by bin(1m)
  • Bfilter @type = "DISPLAY" | stats avg(@duration), max(@duration), min(@duration) by bin(5m)
  • Cfilter @type = "STATS" | stats avg(@duration), max(@duration), min(@duration) by bin(5m)
  • Dfilter @type = "PATTERN" | stats avg(@duration), max(@duration), min(@duration) by bin(1m)

How the community answered

(35 responses)
  • A
    80% (28)
  • B
    6% (2)
  • C
    11% (4)
  • D
    3% (1)

Explanation

Option A is correct because AWS Lambda automatically generates log entries with @type = 'REPORT' that contain execution metadata including @duration (the actual function execution time). Using bin(1m) groups the results into 1-minute intervals, and the stats functions avg(), max(), and min() provide the average, slowest, and fastest processing times respectively - exactly matching the requirements.

Topics

#AWS Lambda#CloudWatch Logs Insights#Observability#Serverless Monitoring

Community Discussion

No community discussion yet for this question.

Full DVA-C02 Practice