A multinational logistics company runs workload components across dozens of Google Cloud projects managed under a single Google Cloud Organization. The security operations team requires all Cloud Audit Logs and application error logs from all projects to be centralized in a dedicated compliance Google Cloud project for long-term storage and analysis. Simultaneously, the operations team needs to prevent low-severity debug log ingestion from ballooning operational costs across the organization. Which architectural strategy should a Cloud Architect implement to fulfill these requirements securely and efficiently?
- Create an organization-level aggregated Log Router sink with an inclusion filter selecting Cloud Audit Logs and logs with severity of ERROR or higher, pointing to the central project log bucket, and assign the sink service account the Logs Bucket Writer role on the destination resource.Cevap
- BConfigure individual project Log Router sinks in each project with inclusion filters, and grant the sink service accounts the primitive Owner role on the destination project to ensure log delivery bypasses project-level authorization checks.
- CConfigure a project-level default Log Router sink in each project and configure VPC Service Controls perimeter egress rules to automatically forward audit logs to the central project without configuring IAM service account permissions.
- DApply a global Cloud Logging exclusion filter at the organization level with the expression 'resource.type=*' to drop all incoming log entries by default, assuming Cloud Audit Logs bypass exclusion filters automatically.
Cevap
Create an organization-level aggregated Log Router sink with an inclusion filter selecting Cloud Audit Logs and logs with severity of ERROR or higher, pointing to the central project log bucket, and assign the sink service account the Logs Bucket Writer role on the destination resource.
Creating an organization-level aggregated Log Router sink enables centralized log aggregation across all existing and future projects within the organization hierarchy. Specifying an inclusion filter for audit logs and error-level messages ensures only required compliance data is routed to the destination project, preventing costs associated with ingesting debug logs. Assigning the specific `roles/logging.bucketWriter` role to the sink service account satisfies security standards through fine-grained identity access.
Adım Adım Çözüm
Anahtar Kavram
Organization-level Aggregated Log Router Sinks and Filtering