A financial services organization processes transactions using microservices on Google Cloud. To control operational expenses, the lead architect must reduce Cloud Logging storage ingestion costs. However, compliance mandates require retaining all security audit records and application error logs for seven years in BigQuery. Which architectural approach should you implement to satisfy both cost optimization and compliance log retention requirements?
- Create a Log Router sink that exports audit logs and logs with severity ERROR or higher to BigQuery, while setting an exclusion filter on the default log bucket for logs with severity below ERROR.Cevap
- BConfigure an exclusion filter matching severity >= INFO across all log buckets to aggressively drop log volume across the entire organization.
- CAssign the primitive Owner role to the logging service account across all projects to allow it to dynamically delete log buckets when ingestion quotas are reached.
- DRely strictly on project-level IAM permission boundaries to prevent developers from viewing verbose logs, avoiding the use of Log Router sinks or exclusion filters.
Cevap
Create a Log Router sink that exports audit logs and logs with severity ERROR or higher to BigQuery, while setting an exclusion filter on the default log bucket for logs with severity below ERROR.
The correct approach uses Cloud Logging Log Router sinks to selectively export required audit and error logs to BigQuery for long-term compliance storage, while configuring exclusion filters on the default bucket to prevent low-severity routine logs from accumulating ingestion costs.
Adım Adım Çözüm
Anahtar Kavram
Monitoring, Logging, and Observability Integration