Complete the code to specify the AWS service that provides default metrics.
service = "[1]"
AWS CloudWatch provides default metrics for AWS services automatically.
Complete the code to create a custom metric namespace in AWS CloudWatch.
cloudwatch.put_metric_data(Namespace='[1]', MetricData=metric_data)
Custom metrics require a unique namespace different from AWS default namespaces.
Fix the error in the code to correctly publish a custom metric value.
cloudwatch.put_metric_data(Namespace='CustomMetrics', MetricData=[{'MetricName': 'PageViews', 'Value': [1]])
The 'Value' field must be a number, not a string, to correctly publish a metric.
Fill both blanks to filter default metrics for EC2 instances with a specific tag.
metrics = cloudwatch.list_metrics(Namespace='[1]', Dimensions=[{'Name': '[2]', 'Value': 'Environment'}])
Default EC2 metrics use the 'AWS/EC2' namespace and are filtered by 'InstanceId' dimension.
Fill all three blanks to create a custom metric with a dimension and unit.
cloudwatch.put_metric_data(Namespace='[1]', MetricData=[{'MetricName': '[2]', 'Dimensions': [{'Name': '[3]', 'Value': 'Server1'}], 'Value': 75, 'Unit': 'Percent'}])
Custom metrics use a custom namespace, a metric name, and a dimension name to specify the metric context.