A security compliance team requires all Data Access audit logs across an entire Google Cloud Organization to be aggregated and streamed in real time to a centralized Pub/Sub topic residing within a dedicated security management project. The solution must adhere strictly to Google Cloud security best practices and the principle of least privilege. Which TWO actions must a cloud architect perform to configure this organization-level log export?
- Create an aggregated log sink at the GCP Organization level with a filter for Data Access audit logs, setting the destination to the central Pub/Sub topic and enabling the include_children parameter.Answer
- Grant the Pub/Sub Publisher role (roles/pubsub.publisher) on the target Pub/Sub topic to the unique writer identity service account generated by the organization log sink.Answer
- CGrant the Owner primitive role (roles/owner) on the organization resource to the log sink service account so it has full permission to write logs across projects.
- DGrant the Service Account Admin role (roles/iam.serviceAccountAdmin) to the log sink service account in the destination project to enable log ingestion impersonation.
- ESubmit a request for a regional quota increase for Cloud Logging ingestion API throughput prior to creating the aggregated organization sink.
Answer
To configure centralized organization-wide audit log streaming securely, you must create an aggregated organization-level log sink with include_children enabled and grant the sink's generated writer identity service account the Pub/Sub Publisher role on the target Pub/Sub topic.
The solution requires aggregated log collection across an entire GCP Organization hierarchy and least-privilege destination authorization. Creating an organization-level sink with `include_children = true` captures logs from all child folders and projects. Granting `roles/pubsub.publisher` to the sink's unique writer identity directly on the target Pub/Sub topic ensures least-privilege access.
Step-by-Step Solution
Key Concept
Organization Aggregated Log Sinks and Least-Privilege IAM Routing
Estimated Time:2m 0s