An enterprise architecture team is designing an operational observability solution for an organization containing over 100 Google Cloud projects. The team needs to set up centralized real-time alerting for system crash events recorded across all Compute Engine virtual machine instances. The solution must minimize administrative overhead, enforce the principle of least privilege, and route matching log entries to a central Cloud Pub/Sub topic located in a dedicated operational monitoring project. Which configuration approach should the architect recommend?
- Create an aggregated log sink at the organization level targeting the central Cloud Pub/Sub topic with an appropriate inclusion filter, and grant the sink's writer identity the Pub/Sub Publisher role on the destination topic.Cevap
- BCreate an aggregated log sink at the organization level targeting the central Cloud Pub/Sub topic with an appropriate inclusion filter, and grant the sink's writer identity the Editor primitive role on the monitoring project.
- CCreate individual log sinks within each child project targeting the central Cloud Pub/Sub topic, and grant the service account responsible for creating the sinks the Service Account Admin role across the organization.
- DConfigure an organization log sink to route all logs to the central Pub/Sub topic, and set a global exclusion filter on the organization resource to suppress all log entries except high-severity system errors.
Cevap
The architect should create an aggregated log sink at the organization level with an inclusion filter targeting the central Cloud Pub/Sub topic, and grant the sink's writer identity the Pub/Sub Publisher role on the destination topic.
Creating an aggregated log sink at the organization resource level allows centralized log collection from all child projects, eliminating per-project configuration drift. Granting the sink's unique writer identity the predefined Pub/Sub Publisher role (`roles/pubsub.publisher`) directly on the target Pub/Sub topic satisfies security least-privilege standards.
Adım Adım Çözüm
Anahtar Kavram
Organization Aggregated Log Sinks and Least-Privilege IAM