AWS Certified Developer Associate DVA-C02 Practice Question
An application running on AWS Lambda regularly processes records from an Amazon Kinesis Stream and records custom metrics. The developer wants to send custom metric data to Amazon CloudWatch for detailed monitoring and alarm setting. Which method will MOST effectively meet this requirement?
Create a custom namespace in CloudWatch and use Amazon Kinesis Data Firehose to stream metrics data to this namespace.
Publish custom metrics directly in the Lambda function code using the CloudWatch
PutMetricData
API call for every metric.Embed custom metrics into structured log events using the CloudWatch Embedded Metric Format (EMF) before sending them to CloudWatch Logs.
Store custom metrics in an Amazon DynamoDB table and run periodic scans to send them to CloudWatch.