Google Cloud Associate Cloud Engineer — Question 113

You are managing several Google Cloud Platform (GCP) projects and need access to all logs for the past 60 days. You want to be able to explore and quickly analyze the log contents. You want to follow Google-recommended practices to obtain the combined logs for all projects. What should you do?

Answer options

Correct answer: B

Explanation

The correct answer is B because exporting logs to a BigQuery dataset allows for efficient querying and analysis of logs while adhering to Google best practices. Option A does not aggregate logs across projects, while option C, although it stores logs, does not offer the analytical capabilities of BigQuery. Option D introduces unnecessary complexity by using Cloud Scheduler when a direct export to BigQuery is more straightforward.