You need to publish metrics from several devices onto Cloudwatch.
There is a requirement to publish the metrics at an interval of 1 second.
How can you accomplish this? Choose 2 answers from the options given below.
Click on the arrows to vote for the correct answer
A. B. C. D.Correct Answers: A and D.
This is given in the AWS Documentation.
Metrics produced by AWS services are standard resolution by default.
When you publish a custom metric, you can define it as either standard resolution or high resolution.
When you publish a high-resolution metric, CloudWatch stores it with a resolution of 1 second.
You can read and retrieve it with a period of 1 second, 5 seconds, 10 seconds, 30 seconds, or any multiple of 60 seconds.
Option B is incorrect since you cannot publish custom metrics from the Console.
Option C is incorrect since you need high resolution for 1 second based metrics.
For more information on publishing custom metrics, please refer to the below URL-
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.htmTo publish metrics from several devices onto CloudWatch at an interval of 1 second, you can accomplish this by:
Use the AWS CLI to publish custom metrics: Using the AWS CLI, you can create a script that periodically sends the custom metrics to CloudWatch. You can use the put-metric-data
command to publish metrics to CloudWatch. By setting the --timestamp
parameter to the current time, you can ensure that the data is published at an interval of 1 second.
Publish metrics with high resolution: To publish metrics at an interval of 1 second, you need to use the high-resolution option. CloudWatch has two types of resolutions for metrics: standard and high-resolution. Standard resolution metrics are published at a 1-minute interval, whereas high-resolution metrics are published at a 1-second interval. You can choose to publish custom metrics with high resolution by setting the StorageResolution
parameter to 1
when creating or updating the metric.
Therefore, the correct answers would be A and D. By using the AWS CLI to publish custom metrics with high resolution, you can accomplish the requirement of publishing metrics from several devices onto CloudWatch at an interval of 1 second.