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?
Install and configure the CloudWatch agent on the host to scrape and forward the new metrics.
Enable detailed monitoring on the Amazon EC2 instances that run the application.
Invoke the CloudWatch PutMetricData API from the application to publish each custom metric.
Create a CloudWatch Logs metric filter that extracts the data from existing log files.
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 telemetry in the context of web applications?
Open an interactive chat with Bash
What are API calls and how do they work for telemetry capture?
Open an interactive chat with Bash
What is the difference between telemetry data and traditional logging?
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...
IT & Cybersecurity Package Join Premium for Full Access