Associate Cloud Engineer ยท Logging and audit logs
Which Cloud Audit Logs are on by default?
Admin Activity, Data Access, System Event and Policy Denied audit logs (which are on by default), enabling Data Access logs, VPC Flow Logs and firewall rule logging.
Key points
- Admin Activity and System Event are always written and cannot be disabled.
- Policy Denied is written by default and cannot be turned off (only excluded from storage).
- Data Access logs are off by default except for BigQuery, and you enable them per service and type (ADMIN_READ, DATA_READ, DATA_WRITE).
- VPC Flow Logs are enabled per subnet and firewall rules logging per rule.
Source: https://docs.cloud.google.com/logging/docs/audit
Practice questions
Which audit log type is disabled by default for most Google Cloud services?
- Admin Activity
- Data Access
- System Event
- Policy Denied
Show answer
Answer: B. Data Access
Data Access logs can be large and costly, so they are off by default (BigQuery is the exception). Admin Activity and System Event are always on, and Policy Denied is generated by default.
Which logs are written without any configuration on your part?
- Admin Activity audit logs
- Data Access audit logs for Cloud Storage
- System Event audit logs
- Policy Denied audit logs
- VPC Flow Logs for every subnet
Show answer
Answer: A. Admin Activity audit logs, C. System Event audit logs, D. Policy Denied audit logs
Admin Activity, System Event and Policy Denied are generated by default. Data Access for services other than BigQuery, VPC Flow Logs and firewall rules logging all need to be enabled.
True or false: to reduce logging costs you can disable Admin Activity audit logs for a project.
Show answer
Answer: False
False. Admin Activity logs are always written and cannot be configured, excluded or disabled.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
