nerdexam
Google

ASSOCIATE-CLOUD-ENGINEER · Question #159

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

The correct answer is B. Create a Stackdriver Logging Export with a Sink destination to a BigQuery dataset.. Since we only care about the logs within 60 days, we can set the expiration time to 60 to retain only the logs within that time frame. Once data is beyond 60 days old, it wouldn't be included in future analyzations. https://cloud.google.com/bigquery/docs/managing-tables#updating_

Submitted by luis.pe· Mar 30, 2026Ensuring successful operation of a cloud solution

Question

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?

Options

  • ANavigate to Stackdriver Logging and select resource.labels.project_id="*"
  • BCreate a Stackdriver Logging Export with a Sink destination to a BigQuery dataset.
  • CCreate a Stackdriver Logging Export with a Sink destination to Cloud Storage.
  • DConfigure a Cloud Scheduler job to read from Stackdriver and store the logs in BigQuery.

How the community answered

(47 responses)
  • A
    15% (7)
  • B
    74% (35)
  • C
    4% (2)
  • D
    6% (3)

Explanation

Since we only care about the logs within 60 days, we can set the expiration time to 60 to retain only the logs within that time frame. Once data is beyond 60 days old, it wouldn't be included in future analyzations. https://cloud.google.com/bigquery/docs/managing-tables#updating_a_tables_expiration_time

Topics

#log export#BigQuery sink#multi-project logging#Stackdriver Logging

Community Discussion

No community discussion yet for this question.

Full ASSOCIATE-CLOUD-ENGINEER Practice