Questions
- You have been hired by a company to help develop an e-commerce application on AWS. The stakeholders of the company want to know how many orders have been placed via this application with second-level granularity. To get this information, you will need to create a custom CloudWatch metric using the AWS CLI. You know that by default, custom metrics have a 1-minute granularity. How can you get the application to send the custom metric in sub-minute intervals?
a. Use the AWS CLI
put-metric-data
command to publish the data and set theStorageResolution
option to1
second to specify the metric as a high-resolution metric.b. Update the CloudWatch agent config file and then add
line high-resolution: true
.c. Go to the graph in the CloudWatch service on the Amazon Management Console and set the resolution to 1-second intervals.
d. Add the
flag –dimensions=1
to the AWS CLIput-metric-data
command to specify a high-resolution metric. - You are currently working for a mid...