AWS Certified Developer Associate DVA-C02 Practice Question
A developer must add application-level health metrics to an existing web service without making any changes to the surrounding infrastructure. Which approach will let the developer emit these custom metrics from inside the application code and have them appear in Amazon CloudWatch?
Enable detailed monitoring on the Amazon EC2 instances that run the application.
Create a CloudWatch Logs metric filter that extracts the data from existing log files.
Invoke the CloudWatch PutMetricData API from the application to publish each custom metric.
Install and configure the CloudWatch agent on the host to scrape and forward the new metrics.
Calling the Amazon CloudWatch PutMetricData API (typically through an AWS SDK) from within the application publishes custom metrics immediately and requires no host or infrastructure changes. Installing or reconfiguring the CloudWatch agent, enabling detailed EC2 monitoring, or creating metric filters on existing logs either needs extra infrastructure changes or only produces system-level-not application-specific-metrics.
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 PutMetricData API?
Open an interactive chat with Bash
How do I use the AWS SDK to integrate PutMetricData API into an application?
Open an interactive chat with Bash
What are the benefits of using custom metrics in Amazon CloudWatch?
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 .