Bird
0
0

Given the query resource.type = "gce_instance" AND severity = "WARNING", what kind of log entries will this return?

medium📝 Predict Output Q13 of 15
GCP - Cloud Monitoring and Logging
Given the query resource.type = "gce_instance" AND severity = "WARNING", what kind of log entries will this return?
AAll logs from any resource with severity WARNING
BLogs from Google Compute Engine instances with any severity
CLogs from any resource with severity ERROR or WARNING
DLogs from Google Compute Engine instances with severity WARNING
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the query conditions

    The query filters logs where resource.type equals "gce_instance" AND severity equals "WARNING".
  2. Step 2: Understand the AND operator effect

    Both conditions must be true, so logs must be from GCE instances and have WARNING severity.
  3. Final Answer:

    Logs from Google Compute Engine instances with severity WARNING -> Option D
  4. Quick Check:

    AND means both conditions true [OK]
Quick Trick: AND means both filters must match logs [OK]
Common Mistakes:
  • Thinking OR is used instead of AND
  • Ignoring resource.type filter
  • Assuming severity includes ERROR

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes