AWS Certified SysOps Administrator – Associate (legacy) — Question 291
A user has setup a web application on EC2. The user is generating a log of the application performance at every second. There are multiple entries for each second. If the user wants to send that data to CloudWatch every minute, what should he do?
Answer options
- A. The user should send only the data of the 60th second as CloudWatch will map the receive data timezone with the sent data timezone
- B. It is not possible to send the custom metric to CloudWatch every minute
- C. Give CloudWatch the Min, Max, Sum, and SampleCount of a number of every minute
- D. Calculate the average of one minute and send the data to CloudWatch
Correct answer: C
Explanation
To efficiently publish high-frequency custom metrics to CloudWatch without hitting API rate limits or losing data granularity, users can aggregate the data locally and upload a StatisticSet. This set must include the Min, Max, Sum, and SampleCount for the specified time block, allowing CloudWatch to reconstruct the statistics accurately. Simply calculating an average or sending a single second of data would result in a significant loss of statistical precision and data integrity.