0
0
AWScloud~10 mins

Why monitoring matters in AWS - Test Your Understanding

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

Complete the code to start monitoring CPU usage with AWS CloudWatch.

AWS
aws cloudwatch [1] --metric-name CPUUtilization --namespace AWS/EC2
Drag options to blanks, or click blank then click option'
Aput-metric-alarm
Bget-metric-statistics
Clist-metrics
Ddelete-alarms
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'put-metric-alarm' instead of 'get-metric-statistics'.
2fill in blank
medium

Complete the code to create an alarm for high CPU usage.

AWS
aws cloudwatch put-metric-alarm --alarm-name HighCPU --metric-name CPUUtilization --namespace AWS/EC2 --statistic Average --period 300 --threshold [1] --comparison-operator GreaterThanThreshold --evaluation-periods 2 --alarm-actions arn:aws:sns:us-east-1:123456789012:NotifyMe
Drag options to blanks, or click blank then click option'
A80
B50
C5
D20
Attempts:
3 left
💡 Hint
Common Mistakes
Setting threshold too low causing false alarms.
3fill in blank
hard

Fix the error in the command to list all CloudWatch alarms.

AWS
aws cloudwatch [1]-alarms
Drag options to blanks, or click blank then click option'
Aget
Bshow
Cdescribe
Dlist
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'list-alarms' which is not a valid command.
4fill in blank
hard

Fill both blanks to create a CloudWatch alarm that triggers when disk space is low.

AWS
aws cloudwatch put-metric-alarm --alarm-name LowDiskSpace --metric-name [1] --namespace AWS/EC2 --statistic Average --period 300 --threshold [2] --comparison-operator LessThanThreshold --evaluation-periods 1 --alarm-actions arn:aws:sns:us-east-1:123456789012:NotifyMe
Drag options to blanks, or click blank then click option'
ADiskSpaceUtilization
BCPUUtilization
C10
D90
Attempts:
3 left
💡 Hint
Common Mistakes
Using CPU metric for disk space alarm.
Setting threshold too high for low disk space.
5fill in blank
hard

Fill all three blanks to create a CloudWatch dashboard widget showing average CPU usage.

AWS
aws cloudwatch put-dashboard --dashboard-name MyDashboard --dashboard-body '{"widgets": [{"type": "metric", "x": 0, "y": 0, "width": 6, "height": 6, "properties": {"metrics": [["[1]", "[2]", "[3]"]], "period": 300, "stat": "Average"}}]}'
Drag options to blanks, or click blank then click option'
AAWS/EC2
BCPUUtilization
CInstanceId
DDiskReadOps
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong metric or namespace.
Missing dimension name.