DVA-C02 practice question · Troubleshooting and Optimization
An API's request count follows a predictable pattern: it is high during weekday business hours and low at night and on…
An API's request count follows a predictable pattern: it is high during weekday business hours and low at night and on weekends. A single fixed alarm threshold either misses real problems at night or fires falsely on busy weekdays. The team wants an alarm that adapts to the metric's historical pattern without anyone maintaining thresholds by hand. Which approach meets this requirement?
- AEnable anomaly detection on the metric and create an alarm that fires when the value goes outside the model's band
- BCreate a static-threshold metric alarm that uses an M-out-of-N datapoints setting to tolerate brief spikes
- CCreate separate weekday and weekend static alarms and combine them in a composite alarm rule
- DCreate a CloudWatch Contributor Insights rule that ranks the top request sources over time
Show the answer and explanation
Correct answer: A) Enable anomaly detection on the metric and create an alarm that fires when the value goes outside the model's band
CloudWatch anomaly detection learns a metric's expected band from its history, including daily and weekly patterns. An anomaly detection alarm fires when the value leaves that band, so no fixed threshold is needed.
Why each option is right or wrong
- A) Correct. Anomaly detection trains on up to two weeks of the metric's history and accounts for trend and for hourly, daily and weekly patterns. An anomaly detection alarm compares the metric with the model's band instead of a static threshold, and can fire above the band, below it, or both.
- B) Incorrect. M-out-of-N evaluation only controls how many breaching datapoints are needed before the alarm fires. The threshold stays fixed, so it still can't follow the different normal levels on weekdays and at night.
- C) Incorrect. A composite alarm only combines the states of other alarms. Each underlying alarm still has a threshold someone must choose and maintain, and nothing learns the metric's pattern.
- D) Incorrect. Contributor Insights finds the top contributors in log data, such as the busiest callers. It doesn't model a metric's expected range or alarm when the metric leaves that range.
- Exam domain
- Troubleshooting and Optimization · 18% of DVA-C02
- Question type
- Multiple choice (one answer)
Related DVA-C02 questions
- A developer runs aws ecs describe-services for a replica service and sees desiredCount: 4, runningCount: 2, and…Troubleshooting and Optimization
- A developer wants to trace a request as it flows through multiple microservices (API Gateway, Lambda, DynamoDB) to…Troubleshooting and Optimization
- Where would a developer look first to see the console.log output and runtime errors from a specific AWS Lambda function…Troubleshooting and Optimization
- Which CloudWatch feature lets a developer run SQL-like queries directly against log data to quickly find patterns, such…Troubleshooting and Optimization
All 67 free DVA-C02 questions by domain · 15 sample questions on one page
Practise the full DVA-C02 exam
This question is one of a small free sample from the CertRidge DVA-C02 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.
Original question written from the official exam guide. Not affiliated with AWS; never copied from the real exam.
Worth reading: DVA-C02 cheat sheet, Lambda, DynamoDB, API Gateway, IAM and Cognito, messaging, CI/CD and X-Ray in tables, plus what DVA-C03 changes.