
Answer-first summary for fast verification
Answer: Configure a log sink in Cloud Logging, specifying a Cloud Storage bucket as the destination.
To meet the requirement of sending logs to a user-created bucket, the correct approach is to create a log sink in Cloud Logging with the destination set to a Cloud Storage bucket. This is because Cloud Storage buckets are designed for storing logs, unlike Cloud Pub/Sub, which is a messaging service. Options involving Cloud Monitoring are incorrect as the task specifically involves logging, not monitoring. For more details, refer to the Google Cloud documentation on logging exports: [https://cloud.google.com/logging/docs/export/configure_export_v2](https://cloud.google.com/logging/docs/export/configure_export_v2).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
Your Site Reliability Engineering (SRE) team is overseeing the CI/CD pipeline for your organization, with applications deployed on Compute Engine instances. There's a need to direct logs from Development Projects to a custom-created bucket. What action should you take to fulfill this requirement?
A
Establish a log sink in Cloud Monitoring, directing logs to a Cloud Storage bucket.
B
Set up a log sink in Cloud Logging, with Cloud Pub/Sub as the destination.
C
Configure a log sink in Cloud Logging, specifying a Cloud Storage bucket as the destination.
D
Create a log sink in Cloud Monitoring, aiming logs towards a Cloud Logging bucket.