Google Associate Cloud Engineer Question 297
Select 3Google Cloud PlatformAs a Google Cloud Associate Cloud Engineer, you are tasked with setting up centralized logging for your organization. You need to configure a log bucket in Google Cloud to store logs from multiple projects and enable log analytics for advanced querying. Additionally, you must ensure that specific logs are routed to a BigQuery dataset for further analysis. What steps should you take to achieve this setup?
- A
Create a centralized log bucket and set it as the destination for the logs from multiple projects.
- B
Enable log analytics on the log bucket to allow for advanced querying.
- C
Configure a log sink to route logs from the log bucket to the BigQuery dataset.
- D
Set up a Cloud Pub/Sub topic and subscribe it to the log bucket for real-time log processing.
- E
Enable Cloud Storage for the log bucket to store logs in a raw format.
Show answer and explanation
Correct answers: A, B, C
Explanation
To achieve centralized logging with advanced querying and targeted log routing, you need to first create a log bucket to serve as the central storage location. Enabling log analytics on this bucket allows for advanced querying capabilities. Finally, configuring a log sink to route specific logs to a BigQuery dataset facilitates detailed analysis. These steps ensure that logs are effectively centralized and accessible for both querying and further processing.
- A. Correct.
Creating a centralized log bucket and setting it as the destination is necessary for storing logs from multiple projects in one location.
- B. Correct.
Enabling log analytics on the log bucket allows you to perform advanced queries on the stored logs.
- C. Correct.
Configuring a log sink is essential to route the logs from the log bucket to a BigQuery dataset for further analysis.
- D. Incorrect.
Setting up a Cloud Pub/Sub topic is not directly necessary for routing logs to BigQuery, as this is not part of the required setup for centralized logging and analysis in this scenario.
- E. Incorrect.
Enabling Cloud Storage for the log bucket is not necessary in this context as the focus is on centralized log storage and analytics using log buckets and BigQuery.