Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 334 discussion

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. 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.
  • D. Use the Lambda function's Invocations metric and Duration metric to calculate the throughput in Amazon CloudWatch.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Alagong
Highly Voted 6 months, 3 weeks ago
Selected Answer: C
Use the metrics to calculate the throughput. This is because custom metrics can provide a more accurate measure of throughput, as they can be configured to only increment when a message is received and processed by the Lambda function. This would exclude the time spent on initialization and post-processing, which are not part of the throughput measurement.
upvoted 5 times
...
albert_kuo
Most Recent 2 weeks, 1 day ago
Selected Answer: C
import boto3 import time cloudwatch = boto3.client('cloudwatch') def lambda_handler(event, context): # Process the IoT message process_message(event) # Publish custom CloudWatch metric for throughput cloudwatch.put_metric_data( Namespace='IoTMessageProcessing', MetricData=[ { 'MetricName': 'MessagesProcessed', 'Timestamp': time.time(), 'Value': 1, 'Unit': 'Count' }, ] )
upvoted 1 times
...
65703c1
4 months, 3 weeks ago
Selected Answer: C
C is the correct answer.
upvoted 1 times
...
trungtd
6 months, 2 weeks ago
Selected Answer: C
Because this requirement provides its own definition of how throughput is measured, you must use custom metrics.
upvoted 2 times
...
seetpt
6 months, 3 weeks ago
Selected Answer: C
I think C
upvoted 2 times
...
KarBiswa
7 months ago
Selected Answer: A
https://aws.amazon.com/blogs/compute/understanding-aws-lambda-scaling-and-throughput/
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...