Bird
0
0

Which of the following is the correct way to send a custom metric to AWS CloudWatch using the AWS CLI?

easy📝 Configuration Q12 of 15
AWS - CloudWatch
Which of the following is the correct way to send a custom metric to AWS CloudWatch using the AWS CLI?
Aaws cloudwatch send-metric --name CPUUtilization --value 70
Baws cloudwatch add-metric-data --metric-name CPUUtilization --value 70
Caws cloudwatch create-metric --metric CPUUtilization --value 70
Daws cloudwatch put-metric-data --metric-name CPUUtilization --namespace AWS/EC2 --value 70
Step-by-Step Solution
Solution:
  1. Step 1: Identify the correct AWS CLI command

    The correct command to send custom metric data is put-metric-data under aws cloudwatch.
  2. Step 2: Check the syntax and parameters

    The command requires --metric-name, --namespace, and --value parameters as shown in aws cloudwatch put-metric-data --metric-name CPUUtilization --namespace AWS/EC2 --value 70.
  3. Final Answer:

    aws cloudwatch put-metric-data --metric-name CPUUtilization --namespace AWS/EC2 --value 70 -> Option D
  4. Quick Check:

    Use put-metric-data with metric-name and namespace [OK]
Quick Trick: Use 'put-metric-data' with metric-name and namespace [OK]
Common Mistakes:
  • Using incorrect command names like send-metric or create-metric
  • Omitting the namespace parameter
  • Confusing metric creation with data sending

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes