Bird
0
0

What is wrong with this Log Explorer query? severity = "ERROR" OR resource.type = "gce_instance" AND

medium📝 Debug Q7 of 15
GCP - Cloud Monitoring and Logging
What is wrong with this Log Explorer query? severity = "ERROR" OR resource.type = "gce_instance" AND
AResource type is misspelled
BOR operator cannot be used with AND
CSeverity value is incorrect
DQuery ends with AND without a condition
Step-by-Step Solution
Solution:
  1. Step 1: Review query ending

    The query ends abruptly with AND and no following condition, which is invalid syntax.
  2. Step 2: Check other parts

    OR and AND can be combined correctly; severity and resource.type are valid.
  3. Final Answer:

    Query ends with AND without a condition -> Option D
  4. Quick Check:

    Queries cannot end with AND alone [OK]
Quick Trick: Never end queries with AND or OR alone [OK]
Common Mistakes:
  • Leaving dangling AND/OR
  • Misunderstanding operator usage
  • Assuming severity value is wrong

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes