Bird
0
0

Which filter would you use in Log Explorer to find logs only from Compute Engine instances?

easy📝 Conceptual Q2 of 15
GCP - Cloud Monitoring and Logging
Which filter would you use in Log Explorer to find logs only from Compute Engine instances?
Aresource.type = "app_engine"
Bresource.type = "cloud_function"
Cresource.type = "gce_instance"
Dresource.type = "bigquery_dataset"
Step-by-Step Solution
Solution:
  1. Step 1: Identify resource types for Compute Engine

    Compute Engine instances use the resource type "gce_instance" in logs.
  2. Step 2: Match the correct filter

    Only resource.type = "gce_instance" matches Compute Engine instances; others are for different services.
  3. Final Answer:

    resource.type = "gce_instance" -> Option C
  4. Quick Check:

    Compute Engine filter = resource.type = "gce_instance" [OK]
Quick Trick: Use resource.type = "gce_instance" for Compute Engine logs [OK]
Common Mistakes:
  • Using wrong resource types
  • Confusing App Engine with Compute Engine
  • Filtering by service name instead of resource.type

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes