AWS Certified Developer Associate · Free Practice Question Medium

Question 10

A company's application has an AWS Lambda function that processes messages from IoT devices. The company wants to monitor the Lambda function to ensure that the Lambda function is meeting its required service level agreement (SLA). A developer must implement a solution to determine the application's throughput in near real time. The throughput must be based on the number of messages that the Lambda function receives and processes in a given time period. The Lambda function performs initialization and post-processing steps that must not factor into the throughput measurement. What should the developer do to meet these requirements?
  • A Use the Lambda function's ConcurrentExecutions metric in Amazon CloudWatch to measure the throughput.
  • B Modify the application to log the calculated throughput to Amazon CloudWatch Logs. Use Amazon EventBridge to invoke a separate Lambda function to process the logs on a schedule.
  • C Use the Lambda function's Invocations metric and Duration metric to calculate the throughput in Amazon CloudWatch.
  • D Modify the application to publish custom Amazon CloudWatch metrics when the Lambda function receives and processes each message. Use the metrics to calculate the throughput.
Reveal correct answer

Correct answer: D

Explanation

To meet the requirements of monitoring the AWS Lambda function's throughput based on the number of messages it receives and processes, the developer should modify the application to publish custom Amazon CloudWatch metrics when the Lambda function receives and processes each message. These custom metrics can then be used to calculate the throughput, ensuring that only the relevant processing steps are measured and not the initialization and post-processing steps.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need