Bird
0
0

Consider this alerting policy condition snippet:

medium📝 Predict Output Q4 of 15
GCP - Cloud Monitoring and Logging
Consider this alerting policy condition snippet:
{"conditionThreshold": {"filter": "metric.type=\"compute.googleapis.com/instance/disk/write_bytes_count\"", "comparison": "COMPARISON_GT", "thresholdValue": 1000000}}

When will this alert trigger?
AWhen CPU utilization exceeds 1,000,000%.
BWhen disk write bytes are less than 1,000,000 bytes.
CWhen disk write bytes exceed 1,000,000 bytes.
DWhen disk read bytes exceed 1,000,000 bytes.
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the metric filter

    The filter specifies metric.type="compute.googleapis.com/instance/disk/write_bytes_count", which monitors disk write bytes.
  2. Step 2: Understand the comparison

    Comparison is COMPARISON_GT (greater than) with thresholdValue 1000000.
  3. Step 3: Determine trigger condition

    The alert triggers when disk write bytes exceed 1,000,000 bytes.
  4. Final Answer:

    When disk write bytes exceed 1,000,000 bytes. -> Option C
  5. Quick Check:

    Metric filter and comparison define when alert triggers. [OK]
Quick Trick: COMPARISON_GT means alert triggers when metric is greater than threshold. [OK]
Common Mistakes:
  • Misreading the metric type as CPU instead of disk write bytes.
  • Confusing greater than with less than comparison.

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes