
Answer-first summary for fast verification
Answer: Configure a log sink in Cloud Logging, with the destination being a Cloud Storage bucket.
The correct approach is to create a log sink within Cloud Logging, specifying a Cloud Storage bucket as the destination. This directly addresses the requirement to store logs in a user-created bucket. The other options are incorrect for the following reasons: Cloud Pub/Sub is not a storage solution, and the log sink should be created in Cloud Logging, not Cloud Monitoring, for this specific need. For more details, refer to the documentation on routing logs to supported destinations.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your Site Reliability Engineering (SRE) team is overseeing the Continuous Integration and Continuous Deployment (CI/CD) processes within your organization. Applications are deployed on Compute Engine instances. There's a specific requirement to direct the logs from these instances in the Development Projects to a bucket created by the user. What action should you take to fulfill this requirement?
A
Establish a log sink in Cloud Monitoring, setting the destination as a Cloud Storage bucket.
B
Set up a log sink in Cloud Logging, directing the logs to a Cloud Pub/Sub topic.
C
Configure a log sink in Cloud Logging, with the destination being a Cloud Storage bucket.
D
Create a log sink in Cloud Monitoring, aiming the logs towards a Cloud Logging bucket.
No comments yet.