DVA-C03 practice question: Custom metrics, alarms and health checks (2 of 4)
Troubleshooting and Optimization A free question from our original DVA-C03 practice exam. Try it, then open the answer to see why each option is right or wrong.
An application publishes a custom metric named QueueLagSeconds with PutMetricData.
Operations want an alarm that evaluates the metric every 10 seconds, so that spikes are caught quickly.
The team accepts a higher charge for this one alarm, but it must keep the same metric and dimensions, and the alarm must reflect the queue's current lag.
Choose one answer.
AA. Publish the metric as a high-resolution metric, then create an alarm with a 10-second period.
BB. Keep the standard-resolution metric and create an alarm with a 10-second period.
CC. Enable detailed monitoring on the instances that publish the metric.
DD. Publish the same standard-resolution metric once per second, so that each alarm period has fresh data.
Show the answer and explanation
Answer: A
A. Right: Correct. Only high-resolution metrics, stored at one-second granularity, can drive alarms with 10- or 30-second periods. Each such alarm costs more, which the team has accepted. Learn more: Publishing custom metrics (opens in a new tab)
B. Wrong: A standard-resolution metric has one-minute granularity, and a 10-second alarm period is not available for it. The alarm cannot evaluate every 10 seconds.
C. Wrong: Detailed monitoring applies to the instances' built-in metrics, not to a custom metric the application publishes. It does not change the granularity of QueueLagSeconds.
D. Wrong: Publishing more often does not change a standard metric's one-minute granularity, so the alarm period still cannot be 10 seconds.
Explanation
Custom metrics are standard resolution by default. Publishing them as high resolution stores them at one-second granularity, and only then can an alarm use a 10-second or 30-second period. Publishing more often or changing instance monitoring does not change this.
Want more on Custom metrics, alarms and health checks? The 5 full-length practice sets have 16 more Custom metrics, alarms and health checks questions, 390 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets →