0
0
AWScloud~20 mins

CloudWatch dashboards in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
CloudWatch Dashboard Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
What happens when you add a widget to a CloudWatch dashboard?

You add a new widget to an existing CloudWatch dashboard. What is the immediate effect on the dashboard's state?

AThe widget is added but only visible after 24 hours due to caching delays.
BThe widget is saved and visible on the dashboard immediately after saving changes.
CThe widget is added but requires a manual refresh of the dashboard to appear.
DThe widget is added but only visible to users with admin permissions.
Attempts:
2 left
💡 Hint

Think about how dashboards update when you save changes.

Configuration
intermediate
2:00remaining
Which JSON snippet correctly defines a CloudWatch dashboard with a single metric widget?

Choose the valid JSON configuration for a CloudWatch dashboard containing one metric widget showing CPUUtilization for an EC2 instance.

A
{
  "widgets": [
    {
      "type": "metric",
      "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"
      }
    }
  ]
}
B
{
  "widgets": [
    {
      "type": "metric",
      "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"
      }
    }
  ]
}
C
{
  "widgets": [
    {
      "type": "metric",
      "x": 0,
      "y": 0,
      "width": 6,
      "height": 6,
      "properties": {
        "metrics": [["AWS/EC2", "CPUUtilization"]],
        "period": 300,
        "stat": "Average",
        "region": "us-east-1",
        "title": "EC2 CPU"
      }
    }
  ]
}
D
{
  "widgets": [
    {
      "type": "metric",
      "x": 0,
      "y": 0,
      "width": 6,
      "height": 6,
      "properties": {
        "metrics": [["AWS/EC2", "CPUUtilization", "InstanceId"]],
        "period": 300,
        "stat": "Average",
        "region": "us-east-1",
        "title": "EC2 CPU"
      }
    }
  ]
}
Attempts:
2 left
💡 Hint

Remember the metrics property requires a list of lists with dimension key-value pairs.

Architecture
advanced
2:00remaining
How to design a CloudWatch dashboard for multi-region EC2 monitoring?

You want a single CloudWatch dashboard to show CPU utilization for EC2 instances across two AWS regions: us-east-1 and us-west-2. What is the best approach?

ACreate one dashboard but omit the region property; CloudWatch will automatically aggregate metrics from all regions.
BCreate two separate dashboards, one per region, and switch between them manually.
CCreate one dashboard with widgets specifying the region property for each metric to show data from both regions.
DCreate one dashboard and use cross-account roles to pull metrics from the other region.
Attempts:
2 left
💡 Hint

Think about how CloudWatch widgets specify regions for metrics.

security
advanced
2:00remaining
Which IAM policy allows read-only access to CloudWatch dashboards?

You want to grant a user permission to view CloudWatch dashboards but not modify them. Which IAM policy action is required?

A"cloudwatch:GetDashboard"
B"cloudwatch:PutDashboard"
C"cloudwatch:DeleteDashboards"
D"cloudwatch:ListDashboards"
Attempts:
2 left
💡 Hint

Consider which action retrieves dashboard content without changing it.

Best Practice
expert
2:00remaining
What is the best practice to optimize CloudWatch dashboard performance with many widgets?

You have a CloudWatch dashboard with 50 widgets showing various metrics. The dashboard loads slowly. What is the best practice to improve performance?

ARemove the region property from widgets to let CloudWatch aggregate metrics automatically.
BIncrease the refresh rate to update widgets more frequently.
CAdd more widgets with smaller time ranges to reduce data volume per widget.
DGroup related metrics into fewer widgets using metric math or multiple metrics per widget.
Attempts:
2 left
💡 Hint

Think about reducing the number of widgets to reduce load.