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()…
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)- A80% (28)
- B6% (2)
- C11% (4)
- D3% (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
Community Discussion
No community discussion yet for this question.