Original study notes for cloud certification exams — Google Cloud first, more clouds in build.

Cloud Audit Logs Study Notes

Cloud Audit Logs record who did what, where, and when across Google Cloud, providing the accountability trail for security, compliance, and troubleshooting. They are part of Cloud Logging but have special types, retention, and access rules. The ACE exam tests the four log types and when each one answers an investigation question.

Exam tip: Anchor the four types: Admin is changes and always on, Data is reads and writes and usually opt-in, System is Google acting, Policy Denied is a guardrail blocking.

Key facts

What the exam expects you to know

Cloud Audit Logs vs Cloud Audit Logs vs Application Logs: when to use which

Use Cloud Audit Logs when the question is about the control plane and identity: who created this bucket, who changed this firewall rule, who read this dataset, and when did it happen. Use application logs when the question is about the workload itself: what the app printed, which request failed, and what stack trace was produced. Audit logs are generated by Google Cloud services about API activity and are tamper-resistant evidence; application logs are generated by your code and can contain anything you choose to write. Security and compliance scenarios almost always need audit logs. See also the Cloud Audit Logs vs Application Logs notes.

Useful gcloud commands

gcloud logging read "logName:cloudaudit.googleapis.com" --limit=20
gcloud logging read "protoPayload.methodName=\"storage.buckets.delete\"" --limit=10

Common exam traps

Frequently asked questions

How do you find who deleted a VM last week?

Query Admin Activity audit logs in Logs Explorer for the Compute Engine delete method and the resource name, filtered to last week. The entry shows the authenticated principal, source IP, and timestamp. Because Admin Activity logs are always written and retained for hundreds of days by default, this evidence should still be present for a recent deletion investigation.

Why are Data Access logs not enabled everywhere by default?

They can be extremely high volume and costly on busy services, and they capture sensitive access patterns that need careful handling. Google leaves them opt-in per service, except where regulation or product design requires them, so you enable them deliberately for sensitive datasets. The exam expects you to weigh security visibility against volume and cost in your answer.

Can audit logs be exported like other logs?

Yes, audit logs in log buckets can be routed by sinks to BigQuery, Cloud Storage, or Pub/Sub for long-term retention and analysis, subject to sink filters and destination permissions. Many compliance designs export organization audit logs centrally. However, the protected copies in the _Required bucket still follow their own retention rules regardless of your export configuration.

Study aid disclaimer: Cloud Cert Notes is an independent educational study aid. It is not affiliated with, endorsed by, or sponsored by Google, Microsoft, Amazon, Oracle, or Alibaba. Google Cloud, Associate Cloud Engineer, and Cloud Digital Leader are trademarks of Google LLC; all other certification names and product names are trademarks of their respective owners. Always confirm service details against the official provider documentation before sitting an exam.