An enterprise architecture team is implementing a centralized compliance auditing strategy across their Google Cloud Organization. They need to export all admin activity and data access audit logs from multiple production projects into a single BigQuery dataset hosted in a dedicated security monitoring project. To meet strict security governance guidelines, they must grant minimal necessary permissions to the automated export mechanism. Which configuration approach correctly fulfills these compliance and least-privilege requirements?
- Create an organization-level aggregated Cloud Logging sink targeting the destination BigQuery dataset, and grant the sink's writer identity the BigQuery Data Editor role (roles/bigquery.dataEditor) on the target dataset.Cevap
- BCreate an organization-level aggregated Cloud Logging sink targeting the destination BigQuery dataset, and grant the sink's writer identity the primitive Owner role (roles/owner) on the security monitoring project.
- CCreate an organization-level aggregated Cloud Logging sink targeting the destination BigQuery dataset, and assign the Service Account User role (roles/iam.serviceAccountUser) to the engineering team on the sink's writer identity service account.
- DSubmit a regional BigQuery API quota increase request prior to creating an organization-level aggregated Cloud Logging sink, and assign the sink's writer identity the BigQuery Admin role (roles/bigquery.admin) on the project.
Cevap
Create an organization-level aggregated Cloud Logging sink targeting the destination BigQuery dataset, and grant the sink's writer identity the BigQuery Data Editor role (roles/bigquery.dataEditor) on the target dataset.
When exporting logs across projects via Cloud Logging sinks, Cloud Logging provisions a service account writer identity. To adhere to Google Cloud security best practices and least privilege, this writer identity must be granted fine-grained dataset-level permissions—specifically the BigQuery Data Editor role (roles/bigquery.dataEditor)—on the target dataset, rather than broad project-level or primitive roles.
Adım Adım Çözüm
Anahtar Kavram
Aggregated Cloud Logging Sinks and Least-Privilege IAM Authorization
Tahmini Süre:1m 30s