A cloud security administrator must set up audit logging to track and analyze user access to Cloud SQL databases across all projects within an organization. The solution requires enabling Cloud SQL Data Access audit logging, aggregating and routing these logs to a central BigQuery dataset in a security project, and granting a security analyst least-privilege permissions to inspect these logs in both Logs Explorer and BigQuery. What is the correct sequence of steps to configure log generation, export routing, writer authorization, and analyst access?
- 1Enable DATA_READ and DATA_WRITE log types for the Cloud SQL Admin API in the organization's audit log configuration.
- 2Create an aggregated log sink at the organization level with a filter for Cloud SQL Data Access logs targeting the central BigQuery dataset.
- 3Grant the service account identity created by the log sink the BigQuery Data Editor role (roles/bigquery.dataEditor) on the target dataset.
- 4Grant the security analyst the Private Logs Viewer role (roles/logging.privateLogViewer) at the organization level.
- 5Grant the security analyst the BigQuery Data Viewer role (roles/bigquery.dataViewer) on the exported audit dataset.
Cevap
The correct sequence begins by enabling Data Access audit logging for Cloud SQL, creating an aggregated organization log sink targeting BigQuery, granting the sink service account write access to the dataset, assigning the Private Logs Viewer role to the analyst for Cloud Logging, and finally granting BigQuery Data Viewer permissions for SQL analysis.
The workflow follows logical and administrative dependencies: log generation must first be enabled for the service; log collection and destination routing must then be established at the organization level; the sink's unique service account must be authorized to write to the destination dataset; and finally, least-privilege IAM permissions must be granted to the analyst for inspecting logs in both Logs Explorer (Private Logs Viewer) and BigQuery (BigQuery Data Viewer).
Adım Adım Çözüm
Anahtar Kavram
Configuring Cloud Audit Log Enablement, Sink Routing, Writer Service Account Authorization, and Private Log Access Control