AWS Certified SysOps Administrator – Associate (legacy) — Question 369
A user has two EC2 instances running in two separate regions. The user is running an internal memory management tool, which captures the data and sends it to
CloudWatch in US East, using a CLI with the same namespace and metric. Which of the below mentioned options is true with respect to the above statement?
Answer options
- A. The setup will not work as CloudWatch cannot receive data across regions
- B. CloudWatch will receive and aggregate the data based on the namespace and metric
- C. CloudWatch will give an error since the data will conflict due to two sources
- D. CloudWatch will take the data of the server, which sends the data first
Correct answer: B
Explanation
Amazon CloudWatch allows custom metrics to be published from any source, including across regions, as long as the correct endpoint is targeted. When multiple sources send data using the exact same namespace and metric name, CloudWatch aggregates this data chronologically. Therefore, it will successfully collect and combine the memory metrics from both EC2 instances under the specified namespace and metric.