Skip to main content

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)

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.