AWS Certified SysOps Administrator – Associate (legacy) — Question 477
A user is sending a custom metric to CloudWatch. If the call to the CloudWatch APIs has different dimensions, but the same metric name, how will CloudWatch treat all the requests?
Answer options
- A. It will treat each unique combination of dimensions as a separate metric.
- B. It will group all the calls into a single call.
- C. It will overwrite the previous dimension data with the new dimension data.
- D. It will reject the request as there cannot be a separate dimension for a single metric.
Correct answer: A
Explanation
Amazon CloudWatch uniquely identifies a metric using a combination of its namespace, metric name, and any associated dimensions. Because dimensions are part of the metric's identity, publishing the same metric name with different dimensions results in CloudWatch treating them as completely separate and independent metrics. Therefore, CloudWatch does not aggregate them, overwrite them, or reject the requests.