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

Cloud Logging Study Notes

Cloud Logging is the centralized, fully managed log management service that collects logs from Google Cloud resources, applications, and custom sources in near real time. You search logs in Logs Explorer, route them with sinks, and retain them in log buckets. The ACE exam tests sinks, retention, and choosing the right destination for analysis or compliance.

Exam tip: Sink questions are destination questions: BigQuery means analyze, Cloud Storage means archive cheaply, Pub/Sub means stream — match the verb in the scenario to the destination.

Key facts

What the exam expects you to know

Cloud Logging vs Cloud Logging vs Cloud Monitoring: when to use which

Use Cloud Logging when your data is discrete events and text: application errors, request logs, audit events, and debug messages you need to search, filter, and route. Use Cloud Monitoring when your data is numeric time series: CPU, latency, request counts, and SLO indicators you need to chart, alert on, and dashboard. They integrate through log-based metrics, which turn log patterns into numbers Monitoring can alert on. For the exam, if the scenario says read the error message, choose Logging; if it says graph the metric and page on a threshold, choose Monitoring. See also the Cloud Logging vs Cloud Monitoring notes.

Useful gcloud commands

gcloud logging read "resource.type=gce_instance" --limit=20
gcloud logging sinks list
gcloud logging sinks create SINK_NAME bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID --log-filter="severity>=ERROR"
gcloud logging buckets list --location=global

Common exam traps

Frequently asked questions

How do you keep logs for a year for compliance?

Create a custom log bucket with retention set to your required period, or create a sink exporting matching logs to Cloud Storage or BigQuery with lifecycle and retention set for long-term keeping. The default bucket retention is too short for most compliance needs. The exam expects you to choose one of these deliberate options rather than hoping default logs remain available.

What is an aggregated sink?

An aggregated sink is created at the organization or folder level and can include logs from all child projects, routing them to a central destination. It solves multi-project centralization without creating a sink in every project. You must enable interception of child logs correctly, and the destination still needs permissions for the sink writer identity.

How do custom application logs get into Cloud Logging?

Install the Google Cloud Ops Agent on Compute Engine VMs, use a logging client library or API from the application, or run a collector such as Fluent Bit in container environments. Simply writing to a local file on a VM does not automatically send it to Cloud Logging. Exam VM scenarios almost always require naming the Ops Agent explicitly.

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.