Course menuDOP-C02

Exams / DOP-C02 / Custom metrics, metric filters and alarms / Question 2

DOP-C02 practice question: Custom metrics, metric filters and alarms (2 of 3)

Monitoring and Logging A free question from our original DOP-C02 practice exam. Try it, then open the answer to see why each option is right or wrong.

Last verified against current AWS documentation ·How we write our questions

An online retailer runs its checkout API behind an Application Load Balancer. The team has a metric for successful checkout responses and a metric for failed responses, both published once per minute.

The on-call team wants a page when the checkout error rate exceeds 2 percent for five minutes, and a separate, quieter notification when latency is high but the error rate is normal. The page must not fire on a single bad minute, and the team does not want to maintain any Lambda functions for the alarms.

Which TWO actions meet these requirements? (Choose two.)

Choose two answers.

  1. A. Create one alarm on the p99 latency statistic of the load balancer's response time, and send it to the same paging topic as the error alarm so that each slow request pages on-call.
  2. B. Create one alarm for each target instance on its own failed-response count, and page on-call when any instance's alarm turns into ALARM state.
  3. C. Create an alarm that uses metric math to divide the failed-response count by the sum of both counts, times 100, and alarm when that expression stays above 2 for five consecutive one-minute periods.
  4. D. Create a Logs Insights query that computes the error rate every minute and a scheduled rule that starts an SNS notification whenever the query returns a result over 2 percent.
  5. E. Create a composite alarm with the rule ALARM(latency) AND NOT ALARM(error-rate), and route it to the quieter channel, while the error-rate alarm itself notifies the paging topic.
Show the answer and explanation

Answers: C, E

Explanation

A metric math alarm can compute the error percentage from the two metrics and require several consecutive breaching periods, so one bad minute does not page. A composite alarm with the rule ALARM(latency) AND NOT ALARM(error-rate) sends the quieter notification only when latency is the sole problem. Per-instance alarms, latency-only paging and scheduled Logs Insights queries each miss a requirement.

Study

Keep practicing

Answer questions with a score at the end, or practice just this topic with the explanation after each one. No sign-up needed.

Want more on Custom metrics, metric filters and alarms? The 5 full-length practice sets have 14 more Custom metrics, metric filters and alarms questions, 375 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets