Bird
0
0

You want to create a sink that exports logs from all Compute Engine instances to a Cloud Storage bucket. Which steps are required?

hard📝 Workflow Q8 of 15
GCP - Cloud Monitoring and Logging
You want to create a sink that exports logs from all Compute Engine instances to a Cloud Storage bucket. Which steps are required?
ACreate a sink with filter 'resource.type=gce_instance' and set destination to the bucket
BCreate a sink with filter 'resource.type=cloud_storage' and set destination to the bucket
CCreate a sink with no filter and destination as the bucket
DCreate a sink with filter 'severity=ERROR' and destination as the bucket
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct resource type filter

    Logs from Compute Engine instances use 'resource.type=gce_instance' to filter relevant logs.
  2. Step 2: Set sink destination

    Destination must be the Cloud Storage bucket where logs will be exported.
  3. Final Answer:

    Create a sink with filter 'resource.type=gce_instance' and set destination to the bucket -> Option A
  4. Quick Check:

    Sink filter + destination = export logs correctly [OK]
Quick Trick: Filter sinks by resource type to export specific logs [OK]
Common Mistakes:
  • Using wrong resource type in filter
  • Omitting filter and exporting all logs unintentionally
  • Filtering by severity instead of resource

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes