Bird
0
0

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:
  1. Step 1: Recall Log Explorer filter syntax

    Log Explorer uses single equals (=) with quotes around string values.
  2. 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.
  3. Final Answer:

    severity = "ERROR" -> Option A
  4. 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 =

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes