Bird
0
0

Which AWS CLI command correctly publishes a custom metric named "ActiveUsers" with a value of 150 to CloudWatch under the namespace "MyAppMetrics"?

easy📝 Syntax Q3 of 15
AWS - CloudWatch
Which AWS CLI command correctly publishes a custom metric named "ActiveUsers" with a value of 150 to CloudWatch under the namespace "MyAppMetrics"?
Aaws cloudwatch put-metric-data --metric-name ActiveUsers --namespace MyAppMetrics --value 150
Baws cloudwatch send-metric --name ActiveUsers --namespace MyAppMetrics --value 150
Caws cloudwatch publish-metric --metric ActiveUsers --namespace MyAppMetrics --data 150
Daws cloudwatch create-metric --metric-name ActiveUsers --namespace MyAppMetrics --value 150
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct AWS CLI command

    The correct command to publish custom metrics is 'put-metric-data'.
  2. Step 2: Verify syntax

    --metric-name specifies the metric, --namespace defines the grouping, and --value sets the metric value.
  3. Final Answer:

    aws cloudwatch put-metric-data --metric-name ActiveUsers --namespace MyAppMetrics --value 150 -> Option A
  4. Quick Check:

    Use put-metric-data with metric-name and namespace [OK]
Quick Trick: Use 'put-metric-data' with correct flags [OK]
Common Mistakes:
MISTAKES
  • Using incorrect commands like send-metric or publish-metric
  • Omitting --metric-name or --namespace
  • Using wrong parameter names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes