A company needs to retain audit logs for 7 years to meet regulatory compliance. They are using Cloud Logging. Which log storage strategy should they use to minimize costs while meeting the requirement?
Trap 1: Store logs in the _Required log bucket with a custom retention of 7…
The _Required log bucket has a maximum retention of 400 days and cannot be extended to 7 years.
Trap 2: Disable logging for non-critical resources to reduce log volume and…
Disabling logs would violate compliance requirements for audit trails.
Trap 3: Use a log sink to export logs to BigQuery and set the table…
BigQuery is not cost-optimized for long-term archival; Cloud Storage is cheaper.
- A
Store logs in the _Required log bucket with a custom retention of 7 years.
Why wrong: The _Required log bucket has a maximum retention of 400 days and cannot be extended to 7 years.
- B
Disable logging for non-critical resources to reduce log volume and retain only essential logs.
Why wrong: Disabling logs would violate compliance requirements for audit trails.
- C
Use a log sink to export logs to Cloud Storage with a retention policy of 7 years and nearline storage class.
Log sinks can export to Cloud Storage, and a retention policy ensures logs are kept for 7 years. Nearline storage class reduces cost.
- D
Use a log sink to export logs to BigQuery and set the table expiration to 7 years.
Why wrong: BigQuery is not cost-optimized for long-term archival; Cloud Storage is cheaper.