Google Cloud Professional Cloud Security Engineer — Question 339
You have just created a new log bucket to replace the _Default log bucket. You want to route all log entries that are currently routed to the _Default log bucket to this new log bucket, in the most efficient manner. What should you do?
Answer options
- A. Create exclusion filters for the _Default sink to prevent it from receiving new logs. Create a user-defined sink, and select the new log bucket as the sink destination.
- B. Disable the _Default sink. Create a user-defined sink and select the new log bucket as the sink destination.
- C. Create a user-defined sink with inclusion filters copied from the _Default sink. Select the new log bucket as the sink destination.
- D. Edit the _Default sink, and select the new log bucket as the sink destination.
Correct answer: D
Explanation
The correct answer is D because editing the _Default sink to point to the new log bucket allows for immediate and efficient routing of logs without needing to disable or create new sinks. The other options involve unnecessary steps that complicate the process, such as creating new sinks or exclusion filters, which are not required for simply redirecting logs.