0
0
GCPcloud~20 mins

Metrics and dashboards in GCP - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Metrics and Dashboards Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
Understanding Metric Types in Google Cloud Monitoring

Which metric type in Google Cloud Monitoring is best suited to track the total number of requests received by a web server over time?

ACumulative metric, because it counts the total number of events since a start time.
BGauge metric, because it measures the current value at a point in time.
CDelta metric, because it measures the change between two points in time.
DDistribution metric, because it shows the distribution of latency values.
Attempts:
2 left
💡 Hint

Think about a metric that keeps adding up over time without resetting.

Architecture
intermediate
2:00remaining
Designing a Dashboard for Latency Monitoring

You want to create a Google Cloud Monitoring dashboard that shows the 95th percentile latency of an API over the last hour. Which chart type and aggregation method should you use?

AUse a line chart with 95th percentile aggregation over the last hour.
BUse a bar chart with sum aggregation over the last hour.
CUse a line chart with mean aggregation over the last hour.
DUse a pie chart with max aggregation over the last hour.
Attempts:
2 left
💡 Hint

Percentiles help understand latency distribution, and line charts show trends over time.

security
advanced
2:00remaining
Securing Access to Monitoring Dashboards

Which IAM role should you assign to a user to allow them to view Google Cloud Monitoring dashboards but prevent them from modifying any metrics or alert policies?

Aroles/owner
Broles/monitoring.viewer
Croles/monitoring.admin
Droles/monitoring.editor
Attempts:
2 left
💡 Hint

Look for the role that grants read-only access to monitoring data.

Configuration
advanced
2:00remaining
Configuring Alerting Policies for CPU Usage

You want to create an alerting policy that triggers if the average CPU usage of a Compute Engine instance exceeds 80% for 5 continuous minutes. Which configuration correctly sets this condition?

AMetric: compute.googleapis.com/instance/cpu/utilization, Aggregation: max, Condition: above 80 for 5 minutes
BMetric: compute.googleapis.com/instance/cpu/usage_time, Aggregation: sum, Condition: above 80 for 5 minutes
CMetric: compute.googleapis.com/instance/cpu/utilization, Aggregation: mean, Condition: above 0.8 for 5 minutes
DMetric: compute.googleapis.com/instance/cpu/usage_time, Aggregation: mean, Condition: above 0.8 for 5 minutes
Attempts:
2 left
💡 Hint

CPU utilization is a ratio between 0 and 1, so thresholds should match that scale.

Best Practice
expert
2:00remaining
Optimizing Dashboard Performance with Large Metrics Data

You manage a dashboard with multiple charts showing high-cardinality metrics from thousands of instances. The dashboard loads slowly. Which approach best improves dashboard performance without losing critical data?

AIncrease the refresh rate to update charts every 10 seconds instead of every minute.
BReduce the time range displayed to the last 1 hour instead of 7 days.
CRemove percentile aggregations and use only mean aggregations for all charts.
DUse metric filters to aggregate data by instance group instead of individual instances.
Attempts:
2 left
💡 Hint

Aggregating data reduces the number of time series and improves load times.