A digital healthcare company runs patient telemetry and microservice workloads across Google Kubernetes Engine (GKE) clusters and on-premises infrastructure. The enterprise operations team needs to establish a centralized observability architecture. Requirements dictate that all administrative audit logs and application error events must be securely routed to a BigQuery dataset located in a dedicated compliance project for long-term retention. Additionally, operational metrics must stream into Cloud Monitoring, and non-essential debug logs must be filtered out without inadvertently dropping high-severity error events or audit records. Which architecture best meets these business and operational requirements following Google Cloud recommended practices?
- Deploy OpenTelemetry Collectors using standard Cloud Logging and Cloud Monitoring exporters. Configure an Organization-level Log Router aggregated sink with explicit inclusion filters targeting the compliance BigQuery dataset, while defining exclusion filters scoped strictly to low-severity debug logs.Answer
- BConfigure an Organization-level Log Router aggregated sink pointing to BigQuery, and apply a broad exclusion filter matching `severity >= ERROR` to minimize ingestion overhead across the organization.
- CGrant the primitive `roles/owner` role to the OpenTelemetry Collector service account across all projects to grant full API permissions for writing metrics to Cloud Monitoring and exporting audit logs directly to BigQuery.
- DRely strictly on standard IAM roles like `roles/logging.configWriter` and `roles/bigquery.dataEditor` to restrict log routing destinations to the compliance project, avoiding VPC Service Controls since IAM permissions alone prevent unauthorized log data exfiltration.