
Answer-first summary for fast verification
Answer: Create a Project dedicated to collecting logs, and within that Project, establish a logging bucket in Logging via the console., Use the CLI to create a logs sink, specifying the logs type to be collected, the logging bucket, the organization, and include the `–include-children` flag.
Option A is incorrect because, in the console, the Logging bucket is created under Logs Storage in Logging, not in Cloud Storage. Options B and D are correct. The logging bucket is created in Logging, and the sink for the organization logs is appropriately set up via the CLI. Option C is incorrect as this setup cannot be accomplished through the console. Option E does not meet the requirement of aggregating logs in one location. For more details, refer to [Google Cloud's documentation on central log storage](https://cloud.google.com/logging/docs/central-log-storage).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
As part of designing a new logs collection system for your organization, you've been tasked with ensuring all audit logs from all projects are aggregated in a single location. Which two methods should you use to achieve this?
A
Create a Project dedicated to collecting logs, and within that Project, establish a logging bucket in Cloud Storage via the console.
B
Create a Project dedicated to collecting logs, and within that Project, establish a logging bucket in Logging via the console.
C
Utilize the console to create a logs sink, selecting the logs type to be collected, the logging bucket, the organization, and all projects within the organization.
D
Use the CLI to create a logs sink, specifying the logs type to be collected, the logging bucket, the organization, and include the –include-children flag.
E
Establish a logs sink in every Project directed to the logging bucket.