
Answer-first summary for fast verification
Answer: Create a dedicated Project for log collection and establish a logging bucket in Logging within that Project using the console., Initiate a logs sink from the command line interface, detailing the logs to collect, the logging bucket, the organization, and include the `–include-children` flag.
Option A is incorrect because the logging bucket should be created in Logging under Logs Storage, not in Cloud Storage. Options D and C are correct. The logging bucket is properly set up in Logging, and the organization logs sink is correctly configured via the CLI. Option B is incorrect as this configuration cannot be done through the console. Option E does not meet the requirement of aggregating logs in a single location. Reference: [Google Cloud Logging Documentation](https://cloud.google.com/logging/docs/central-log-storage).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You are tasked with designing a new system for collecting logs across your organization. The requirement is to aggregate all audit logs from every project into a single location. Which two methods should you use to achieve this?
A
Establish a dedicated Project for log collection and create a logging bucket in Cloud Storage within that Project using the console.
B
Set up a logs sink via the console, choosing the logs to collect, the logging bucket, the organization, and all projects within the organization.
C
Initiate a logs sink from the command line interface, detailing the logs to collect, the logging bucket, the organization, and include the –include-children flag.
D
Create a dedicated Project for log collection and establish a logging bucket in Logging within that Project using the console.
E
Implement a logs sink in each Project directing to the logging bucket.