AWS Certified Developer Associate DVA-C02 Practice Question
A development team is monitoring an AWS Lambda function that processes items from an Amazon DynamoDB stream. Some invocations fail because the incoming records contain client-side mistakes. The team wants to measure how often these client-caused errors occur so that they can track trends and tune the application. Which solution will best provide a reliable count of these specific failures over time?
Enable enhanced monitoring such as Lambda Insights to capture all execution details and errors.
Instrument the function with AWS X-Ray and tag traces that include client errors.
Record a custom CloudWatch metric from the function code each time a client error is detected.
Add verbose logging to the function and periodically scan the logs for client errors.
Emitting a custom CloudWatch metric from the function whenever it detects a client-related error lets the team aggregate and graph the exact number of such failures. Built-in Lambda metrics report only overall errors, enhanced monitoring focuses on system resources, and distributed tracing samples requests, so none of those alternatives gives an accurate, ongoing count of this particular error class.
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 a custom metric in AWS?
Open an interactive chat with Bash
How are client errors tracked in a serverless function?
Open an interactive chat with Bash
Why is using a custom metric better than just reviewing logs?
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 .