nerdexam
Amazon

DVA-C02 · Question #465

A developer is using an AWS Lambda function to process data. The developer needs to extract custom metrics about processing times from the Lambda logs. The developer needs to analyze the metrics…

The correct answer is B. Use the open source client libraries provided by Amazon to generate the logs in the Amazon. Amazon provides open-source client libraries that allow you to embed custom metrics directly into your Lambda logs in a structured format (CloudWatch Embedded Metric Format). This approach enables the automatic extraction of custom metrics from the logs, and these metrics are…

Submitted by kavita_s· Mar 5, 2026Monitoring and Troubleshooting

Question

A developer is using an AWS Lambda function to process data. The developer needs to extract custom metrics about processing times from the Lambda logs. The developer needs to analyze the metrics, set alarms, and detect issues in real time. Which solution will meet these requirements?

Options

  • APublish custom metric data to AWS CloudTrail by using the PutMetricData API operation. Classify
  • BUse the open source client libraries provided by Amazon to generate the logs in the Amazon
  • CUse Amazon CloudWatch Logs Insights to create custom metrics by querying the logs that come
  • DCreate an Amazon Kinesis data stream to stream log events in real time from Lambda. Specify an

How the community answered

(25 responses)
  • A
    4% (1)
  • B
    84% (21)
  • C
    8% (2)
  • D
    4% (1)

Explanation

Amazon provides open-source client libraries that allow you to embed custom metrics directly into your Lambda logs in a structured format (CloudWatch Embedded Metric Format). This approach enables the automatic extraction of custom metrics from the logs, and these metrics are immediately available for analysis in Amazon CloudWatch. You can use CloudWatch to create graphs, alarms, and set real-time alerts based on these custom metrics.

Community Discussion

No community discussion yet for this question.

Full DVA-C02 Practice