0
0
AWScloud~10 mins

CloudWatch dashboards in AWS - Interactive Code Practice

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

Complete the code to create a CloudWatch dashboard with a specified name.

AWS
aws cloudwatch put-dashboard --dashboard-name [1] --dashboard-body file://dashboard.json
Drag options to blanks, or click blank then click option'
AMyDashboard
BDashboard1
CCloudWatchDash
DTestDashboard
Attempts:
3 left
💡 Hint
Common Mistakes
Using a file path instead of a simple name for the dashboard name.
Including spaces in the dashboard name without quotes.
2fill in blank
medium

Complete the code to specify the dashboard body JSON file for the CloudWatch dashboard.

AWS
aws cloudwatch put-dashboard --dashboard-name Dashboard1 --dashboard-body [1]
Drag options to blanks, or click blank then click option'
Afile://dashboard.json
Bdashboard.json
C"{\"widgets\":[]}"
Ddashboard-body.json
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting the file:// prefix when specifying a file.
Passing just the filename without quotes or prefix.
3fill in blank
hard

Fix the error in the dashboard JSON snippet by completing the missing widget type.

AWS
{
  "widgets": [
    {
      "type": "[1]",
      "x": 0,
      "y": 0,
      "width": 6,
      "height": 6,
      "properties": {
        "metrics": [["AWS/EC2", "CPUUtilization", "InstanceId", "i-1234567890abcdef0"]],
        "period": 300,
        "stat": "Average",
        "region": "us-east-1",
        "title": "EC2 CPU"
      }
    }
  ]
}
Drag options to blanks, or click blank then click option'
Atext
Balarm
Clog
Dmetric
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'text' instead of 'metric' for a graph widget.
Using 'log' which is not a valid widget type.
4fill in blank
hard

Fill both blanks to complete the widget properties for a CloudWatch dashboard showing average CPU utilization.

AWS
{
  "widgets": [
    {
      "type": "metric",
      "x": 0,
      "y": 0,
      "width": [1],
      "height": [2],
      "properties": {
        "metrics": [["AWS/EC2", "CPUUtilization"]],
        "period": 300,
        "stat": "Average",
        "region": "us-west-2",
        "title": "CPU Usage"
      }
    }
  ]
}
Drag options to blanks, or click blank then click option'
A6
B12
C8
D4
Attempts:
3 left
💡 Hint
Common Mistakes
Using zero or negative numbers for width or height.
Swapping width and height values.
5fill in blank
hard

Fill all three blanks to complete the JSON snippet for a CloudWatch dashboard widget showing average network in bytes for an EC2 instance.

AWS
{
  "widgets": [
    {
      "type": "[1]",
      "x": 0,
      "y": 0,
      "width": 6,
      "height": 6,
      "properties": {
        "metrics": [["AWS/EC2", "[2]", "InstanceId", "[3]"]],
        "period": 300,
        "stat": "Average",
        "region": "us-east-2",
        "title": "Network In"
      }
    }
  ]
}
Drag options to blanks, or click blank then click option'
Ametric
BNetworkIn
Ci-0abcdef1234567890
Dtext
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'text' as widget type instead of 'metric'.
Using incorrect metric names or instance IDs.