nerdexam
Google

PROFESSIONAL-CLOUD-ARCHITECT · Question #263

Your company has an application that is running on multiple instances of Compute Engine. It generates 1 TB per day of logs. For compliance reasons, the logs need to be kept for at least two years. The

The correct answer is A. 1. Install a Cloud Logging agent on all instances.. For big query, when a partition expires, the data in the partition is no longer available for querying. BigQuery will eventually deletes the expired partition which doesn't meet the requirement described. https://cloud.google.com/logging/docs/agent/logging/installation https://cl

Submitted by kim_seoul· Mar 30, 2026Designing and planning a cloud solution architecture

Question

Your company has an application that is running on multiple instances of Compute Engine. It generates 1 TB per day of logs. For compliance reasons, the logs need to be kept for at least two years. The logs need to be available for active query for 30 days. After that, they just need to be retained for audit purposes. You want to implement a storage solution that is compliant, minimizes costs, and follows Google-recommended practices. What should you do?

Options

  • A
    1. Install a Cloud Logging agent on all instances.
  • B
    1. Write a daily cron job, running on all instances, that uploads logs into a Cloud Storage bucket.
  • C
    1. Install a Cloud Logging agent on all instances.
  • D
    1. Create a daily cron job, running on all instances, that uploads logs into a partitioned BigQuery

How the community answered

(41 responses)
  • A
    59% (24)
  • B
    5% (2)
  • C
    12% (5)
  • D
    24% (10)

Explanation

For big query, when a partition expires, the data in the partition is no longer available for querying. BigQuery will eventually deletes the expired partition which doesn't meet the requirement described. https://cloud.google.com/logging/docs/agent/logging/installation https://cloud.google.com/logging/docs/export/configure_export_v2 https://cloud.google.com/bigquery/external-data-cloud-storage

Topics

#Cloud Logging#Cloud Storage#log retention#object lifecycle management

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-ARCHITECT Practice