0
0
AWScloud~10 mins

Default vs custom metrics in AWS - Interactive Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to specify the AWS service that provides default metrics.

AWS
service = "[1]"
Drag options to blanks, or click blank then click option'
ACloudWatch
BS3
CEC2
DLambda
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing a compute or storage service instead of the monitoring service.
2fill in blank
medium

Complete the code to create a custom metric namespace in AWS CloudWatch.

AWS
cloudwatch.put_metric_data(Namespace='[1]', MetricData=metric_data)
Drag options to blanks, or click blank then click option'
AAWS/EC2
BAWS/S3
CCustomNamespace
DAWS/Lambda
Attempts:
3 left
💡 Hint
Common Mistakes
Using default AWS namespaces for custom metrics.
3fill in blank
hard

Fix the error in the code to correctly publish a custom metric value.

AWS
cloudwatch.put_metric_data(Namespace='CustomMetrics', MetricData=[{'MetricName': 'PageViews', 'Value': [1]])
Drag options to blanks, or click blank then click option'
A100
B'one hundred'
C"100"
D'100'
Attempts:
3 left
💡 Hint
Common Mistakes
Passing the metric value as a string instead of a number.
4fill in blank
hard

Fill both blanks to filter default metrics for EC2 instances with a specific tag.

AWS
metrics = cloudwatch.list_metrics(Namespace='[1]', Dimensions=[{'Name': '[2]', 'Value': 'Environment'}])
Drag options to blanks, or click blank then click option'
AAWS/EC2
BAWS/S3
CInstanceId
DBucketName
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong namespaces or dimension names for EC2 metrics.
5fill in blank
hard

Fill all three blanks to create a custom metric with a dimension and unit.

AWS
cloudwatch.put_metric_data(Namespace='[1]', MetricData=[{'MetricName': '[2]', 'Dimensions': [{'Name': '[3]', 'Value': 'Server1'}], 'Value': 75, 'Unit': 'Percent'}])
Drag options to blanks, or click blank then click option'
ACustomAppMetrics
BCPUUtilization
CInstanceType
DAWS/EC2
Attempts:
3 left
💡 Hint
Common Mistakes
Using AWS default namespaces for custom metrics.
Using incorrect dimension names.