AWS Certified Advanced Networking – Specialty (ANS-C00) — Question 317
A user is collecting 1000 records per second. The user wants to send the data to CloudWatch using a custom namespace. Which of the below mentioned options is recommended for this activity?
Answer options
- A. Aggregate the data with statistics, such as Min, max, Average, Sum and Sample data and send the data to CloudWatch
- B. Send all the data values to CloudWatch in a single command by separating them with a comma. CloudWatch will parse automatically
- C. It is not possible to send all the data in one call. Thus, it should be sent one by one. CloudWatch will aggregate the data automatically
- D. Create one csv file of all the data and send a single file to CloudWatch
Correct answer: A
Explanation
When dealing with high-frequency data (such as 1000 records per second), sending individual API requests will lead to API throttling and high costs. The recommended best practice is to aggregate the data on the client side into a StatisticSet (including Min, Max, Sum, and SampleCount) and send the summarized data to CloudWatch. CloudWatch does not natively parse comma-separated values or CSV files directly via its API.