
Explanation:
The correct answer is C. To accurately measure the throughput based on the number of messages processed by the Lambda function, custom metrics are required. This is because the built-in CloudWatch metrics like ConcurrentExecutions, Invocations, and Duration do not provide specific insights into the number of messages processed per unit time, excluding initialization and post-processing steps. By publishing custom Amazon CloudWatch metrics for each message processed by the Lambda function, the developer can precisely calculate the throughput based on the required parameters.
A company requires real-time monitoring of an AWS Lambda function processing IoT device messages to ensure SLA compliance. The developer must implement a solution to measure the function's throughput, excluding initialization and post-processing times. What is the appropriate action?
A
Monitor throughput using Lambda's ConcurrentExecutions metric in Amazon CloudWatch.
B
Log throughput in Amazon CloudWatch Logs, processed by a separate Lambda function triggered by Amazon EventBridge.
C
Publish custom metrics in Amazon CloudWatch for each message processed, then calculate throughput.
D
Calculate throughput using Lambda's Invocations and Duration metrics in Amazon CloudWatch.
No comments yet.