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.
Store custom metrics in an Amazon DynamoDB table and run periodic scans to send them to CloudWatch.
Embed custom metrics into structured log events using the CloudWatch Embedded Metric Format (EMF) before sending them to CloudWatch Logs.
Using CloudWatch Embedded Metric Format (EMF) allows the application to publish custom metrics alongside detailed log events within the same payload. The log events are structured in a way that CloudWatch can extract the metric values. This simplifies the process by reducing the need for additional calls to publish metrics and improves performance by batching metric data with logs. Using custom namespaces in CloudWatch does not offer the same level of integration and simplicity. Publishing custom metrics directly in the Lambda function using the PutMetricData API increases the complexity and the cost due to additional API calls. Adding the metrics to DynamoDB for later processing is inefficient and not intended for real-time monitoring.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the CloudWatch Embedded Metric Format (EMF)?
Open an interactive chat with Bash
Why is using the `PutMetricData` API less efficient than EMF in this scenario?
Open an interactive chat with Bash
Can you explain why Amazon DynamoDB is not recommended for storing custom metrics in this case?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Troubleshooting and Optimization
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .