A cloud architect needs to consolidate all Administrative Activity audit logs from all projects within a Google Cloud organization into a centralized BigQuery dataset for compliance auditing. Which approach represents the recommended Google Cloud observability integration pattern while following security best practices?
- Create an aggregated Log Router sink at the organization level targeting the BigQuery dataset, and grant the sink's service account the BigQuery Data Editor role on the destination dataset.Cevap
- BCreate an aggregated Log Router sink at the organization level, and grant the sink's service account the primitive Owner role on the target BigQuery project to guarantee write access.
- CCreate an aggregated Log Router sink at the organization level, and add an exclusion filter matching severity >= NOTICE to minimize BigQuery ingestion costs.
- DGrant auditors standard IAM Viewer permissions across all projects to review logs in the Cloud Logging console without creating an aggregated sink, relying on IAM alone for data protection.
Cevap
Create an aggregated Log Router sink at the organization level targeting the BigQuery dataset, and grant the sink's service account the BigQuery Data Editor role on the destination dataset.
Aggregated Log Router sinks created at the Google Cloud organization resource level automatically gather log entries from all projects under the organization and export them to a designated target such as BigQuery. Granting the BigQuery Data Editor role to the sink's service account provides the minimum permissions necessary to write log entries to the destination table.
Adım Adım Çözüm
Anahtar Kavram
Aggregated Log Router Sinks and Least-Privilege IAM Integration