Bird
0
0

Consider the log-based metric filter: resource.type = "gce_instance" AND severity >= "WARNING". What logs will this metric count?

medium📝 Predict Output Q4 of 15
GCP - Cloud Monitoring and Logging
Consider the log-based metric filter: resource.type = "gce_instance" AND severity >= "WARNING". What logs will this metric count?
AAll logs from any resource with severity WARNING or higher.
BOnly logs from GCE instances with severity exactly WARNING.
CAll logs from GCE instances with severity WARNING, ERROR, or higher.
DLogs from GCE instances with severity less than WARNING.
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the filter

    The filter specifies resource.type = "gce_instance" and severity >= "WARNING".
  2. Step 2: Understand severity comparison

    Severity >= "WARNING" includes WARNING, ERROR, CRITICAL, etc.
  3. Step 3: Confirm resource restriction

    Only logs from GCE instances are counted.
  4. Final Answer:

    All logs from GCE instances with severity WARNING, ERROR, or higher. -> Option C
  5. Quick Check:

    Filter limits resource and severity >= WARNING [OK]
Quick Trick: Severity >= WARNING includes WARNING and above [OK]
Common Mistakes:
  • Assuming severity = WARNING only
  • Ignoring resource.type filter
  • Including logs from other resource types

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes