You need combined logs for several projects for the past 60 days and want to explore and analyze them quickly following Google-recommended practices. What should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: Create a Logging sink exporting to a BigQuery dataset and set the BigQuery table expiration to 60 days..
Why this is the answer
Exporting logs to BigQuery via a Logging sink is the recommended practice for advanced analysis and querying across multiple projects. BigQuery's powerful SQL capabilities allow for quick exploration and analysis of large datasets. Setting the table expiration to 60 days automatically manages data retention, aligning with the requirement. Selecting resource.labels.projectid="" in Cloud Logging only allows viewing logs within the Logging UI, not advanced analysis across projects. Exporting to Cloud Storage is suitable for long-term archival or data lakes, but BigQuery is better for interactive querying and analysis. Using Cloud Scheduler to read and write logs is an unnecessarily complex and less efficient approach compared to a native Logging sink.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed