A healthcare company hosts microservices across multiple Google Cloud projects under an organization resource. The operations team requires a centralized observability solution that achieves two main goals:
1. Operational metrics from all workload projects must be visible in a single dashboard without granting engineers administrative or broad resource access to workload projects.
2. Audit logs and critical error logs across all projects must be forwarded automatically to a central security project in real time for ingestion, while keeping lower-severity debug logs localized to their source project.
Which TWO architectural steps should you take to satisfy these requirements according to Google Cloud best practices?
- Configure an aggregated Log Router sink at the Google Cloud Organization level with an inclusion filter for audit logs and error severities, targeting a Pub/Sub topic in the central security project.Answer
- Create a Cloud Monitoring Metrics Scope in a central scoping project and add the workload projects as monitored projects.Answer
- CApply a global Cloud Logging exclusion filter matching `severity < ERROR` on the `_Default` sink across all workload projects to reduce ingestion costs.
- DAssign the primitive Owner role (`roles/owner`) on all workload projects to the central logging service account to grant multi-project observability access.
- ERely exclusively on Cloud IAM policy bindings on log storage buckets without configuring VPC Service Controls perimeters for cross-project log transfers.
Answer
The correct architecture requires creating an aggregated Log Router sink at the organization level to forward selected audit and high-severity logs, and configuring a Cloud Monitoring Metrics Scope in a central project to aggregate metric monitoring across projects.
Establishing an aggregated Log Router sink at the organization level automatically routes specified security audit and high-severity log streams into a central Pub/Sub topic across all projects under the organization resource. Combining this with a Cloud Monitoring Metrics Scope allows operators to view telemetry from multiple projects within a single monitoring workspace without granting elevated IAM roles on workload projects.
Step-by-Step Solution
Key Concept
Multi-Project Observability with Aggregated Sinks and Cloud Monitoring Metrics Scopes