A user is collecting 1000 records per second. The user wants to send the data to CloudWatch using the custom namespace. Which of the below mentioned options is recommended for this activity?
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.
Create one csv file of all the data and send a single file to CloudWatch
D.
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
Suggested Answer:A🗳️
AWS CloudWatch supports the custom metrics. The user can always capture the custom data and upload the data to CloudWatch using CLI or APIs. The user can publish data to CloudWatch as single data points or as an aggregated set of data points called a statistic set using the command put-metric-data. It is recommended that when the user is having multiple data points per minute, he should aggregate the data so that it will minimize the number of calls to put-metric- data. In this case it will be single call to CloudWatch instead of 1000 calls if the data is aggregated.
Which of the following choices is most appropriate for this activity?
A. Aggregate the data with statistics, such as Min, max, Average, Sum and Sample data and send the data to CloudWatch => why aggregating before sending?
B. Send all the data values to CloudWatch in a single command by separating them with a comma. CloudWatch will parse automatically => as it shows the link that's provided later cw put-metric-data command can only get until 150 data points
C. Create one csv file of all the data and send a single file to CloudWatch => I did not find any option for this
D. 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 => I don't agree with the "it should be sent one by one", if there're options to send data in arrays
https://docs.aws.amazon.com/cli/latest/reference/cloudwatch/put-metric-data.html
You can publish either individual data points in the Value field, or arrays of values and the number of times each value occurred during the period by using the Values and Counts fields in the MetricDatum structure. Using the Values and Counts method enables you to publish up to 150 values per metric with one PutMetricData request, and supports retrieving percentile statistics on this data.
D. Should read: D. 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
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
awscertified
Highly Voted 1 year, 2 months agoablazleon
Most Recent 9 months, 2 weeks agoTroyMcLure
1 year, 2 months agoJshuen
1 year, 2 months agotwxl
1 year, 2 months ago