An Site Reliability Engineering (SRE) team is designing a centralized operational observability and compliance log routing framework across an entire Google Cloud Organization. They need to aggregate all admin activity audit logs from all project workloads into a dedicated Security Operations project's BigQuery dataset for long-term retention. Additionally, they must monitor application severity levels and receive real-time notifications whenever high-priority application errors spike across services. Which TWO actions should the team perform to meet these requirements following Google-recommended best practices and least-privilege security principles? (Select TWO.)
- Create an organization-level aggregated log sink with an inclusion filter matching audit logs targeting the BigQuery dataset, and grant the sink's service account identity the BigQuery Data Editor (roles/bigquery.dataEditor) role on the target dataset.Cevap
- Create a custom log-based metric matching log entries with severity level ERROR or higher, and configure a Cloud Monitoring alerting policy based on the rate of change of this log-based metric.Cevap
- CGrant the primitive Editor (roles/editor) role to the aggregated log sink's service account on the central Security Operations destination project.
- DGrant the Service Account Admin (roles/iam.serviceAccountAdmin) role to the operations service account responsible for creating and evaluating metric alert triggers.
- EConfigure an organization-level exclusion filter for severity level ERROR logs to prevent log ingestion fees prior to evaluating log-based metrics.
Cevap
The correct architecture requires creating an organization-level aggregated log sink targeted to the BigQuery dataset with the BigQuery Data Editor role assigned to the sink writer identity, along with creating a custom log-based metric for ERROR severity logs to trigger a Cloud Monitoring alerting policy.
To centralize log retention securely across an entire enterprise, Google Cloud recommends using an organization aggregated log sink targeting a central sink destination (BigQuery dataset) with least-privilege dataset roles (`roles/bigquery.dataEditor`) granted specifically to the sink's generated writer identity. To detect application error spikes in real-time, creating a log-based metric filtered by `ERROR` severity coupled with a Cloud Monitoring alerting policy allows SRE teams to be notified dynamically on metric threshold breaches.
Adım Adım Çözüm
Anahtar Kavram
Organization Log Aggregation, Least-Privilege Sink Service Accounts, and Log-Based Metric Alerting
Tahmini Süre:2m 30s