Bird
0
0

Given the following AWS CLI command:

medium📝 Predict Output Q4 of 15
AWS - CloudWatch
Given the following AWS CLI command:
aws cloudwatch put-metric-data --metric-name RequestCount --namespace MyApp --value 50

What will be the result in CloudWatch?
AThe metric will overwrite the default RequestCount metric.
BAn error will occur because the unit parameter is missing.
CThe metric will be created but only visible after 24 hours.
DA custom metric named RequestCount with value 50 will be created under MyApp namespace.
Step-by-Step Solution
Solution:
  1. Step 1: Understand put-metric-data behavior

    Using put-metric-data creates or updates a custom metric with given name, namespace, and value.
  2. Step 2: Check if unit is mandatory

    Unit is optional; if omitted, CloudWatch assigns a default unit.
  3. Final Answer:

    A custom metric named RequestCount with value 50 will be created under MyApp namespace. -> Option D
  4. Quick Check:

    Custom metric creation = C [OK]
Quick Trick: Unit is optional when sending custom metrics [OK]
Common Mistakes:
  • Assuming unit is required
  • Thinking custom metrics overwrite default metrics
  • Believing metrics take 24 hours to appear

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes