Which of the following is the correct syntax to filter logs for entries where the severity is ERROR in Log Explorer?
easy📝 Syntax Q12 of 15
GCP - Cloud Monitoring and Logging
Which of the following is the correct syntax to filter logs for entries where the severity is ERROR in Log Explorer?
Aseverity = "ERROR"
Bseverity == "ERROR"
Cseverity="ERROR"
Dseverity = ERROR
Step-by-Step Solution
Solution:
Step 1: Recall Log Explorer filter syntax
Log Explorer uses single equals (=) with quotes around string values.
Step 2: Check each option
severity = "ERROR" uses correct syntax: single equals (=) with quotes around string values. Omitting quotes, using double equals, or missing spaces around the operator are incorrect.
Final Answer:
severity = "ERROR" -> Option A
Quick Check:
Use = and quotes for strings [OK]
Quick Trick:Use = and quotes for string filters in Log Explorer [OK]
Common Mistakes:
Using == instead of =
Omitting quotes around string values
Missing spaces around =
Master "Cloud Monitoring and Logging" in GCP
9 interactive learning modes - each teaches the same concept differently