AWS Certified Solutions Architect – Professional — Question 358
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 reject the request as there cannot be a separate dimension for a single metric.
- B. It will group all the calls into a single call.
- C. It will treat each unique combination of dimensions as a separate metric.
- D. It will overwrite the previous dimension data with the new dimension data.
Correct answer: C
Explanation
Amazon CloudWatch uniquely identifies a metric using a combination of its name, namespace, and any associated dimensions. Because of this, publishing data with the same metric name but different dimensions creates a distinct metric for each unique dimension combination. It does not overwrite existing metrics or reject the API calls, nor does it aggregate them automatically into a single metric.