Q74 — AWS DVA-C02 Ch.3
Question 74 of 100 | ← Chapter 3
A company’s application includes an AWS Lambda function that processes messages from IoT devices. The company wants to monitor the Lambda function to ensure it meets its business-critical service level agreement (SLA). A developer must implement a solution to measure application throughput in near real time. Throughput must be based on the number of messages received and processed by the Lambda function within a given time window. Lambda function initialization and post-processing steps must be excluded from throughput calculations. What should the developer do to meet these requirements?
- A. Use the ConcurrentExecutions metric for the Lambda function in Amazon CloudWatch to measure throughput.
- B. Modify the application to log calculated throughput to Amazon CloudWatch Logs. Use Amazon EventBridge to invoke a separate Lambda function on a schedule to process the logs.
- C. Modify the application to publish custom Amazon CloudWatch metrics each time the Lambda function receives and processes a message. Use these metrics to calculate throughput. ✓
- D. Use the Invocations and Duration metrics for the Lambda function in Amazon CloudWatch to calculate throughput.
Correct Answer: C. Modify the application to publish custom Amazon CloudWatch metrics each time the Lambda function receives and processes a message. Use these metrics to calculate throughput.
Explanation
Option C recommends modifying the application to publish custom CloudWatch metrics for each message received and processed, enabling throughput calculation based solely on actual message handling — excluding initialization and post-processing steps from measurement. 【Lantern Certification: swufelp1999】