AWS Certified Solutions Architect – Professional — Question 359
In Amazon CloudWatch, you can publish your own metrics with the put-metric-data command. When you create a new metric using the put-metric-data command, it can take up to two minutes before you can retrieve statistics on the new metric using the get-metric-statistics command.
How long does it take before the new metric appears in the list of metrics retrieved using the list- metrics command?
Answer options
- A. After 2 minutes
- B. Up to 15 minutes
- C. More than an hour
- D. Within a minute
Correct answer: B
Explanation
When a new metric is created using the put-metric-data command, it can take up to 15 minutes for it to become visible in the list returned by the list-metrics command. In contrast, retrieving statistics for the new metric via get-metric-statistics is typically available much faster, within two minutes. The other timeframes do not align with Amazon CloudWatch's documented propagation behavior for metric listing.