Prepare and test your skills
Prepare and test your skills
Centralized security logging in Google Cloud is an enable, route, and analyze workflow that collects audit and network telemetry from every project, folder, and billing account into tamper-proof destinations. Cloud Logging (opens in a new tab) ingests the logs, an aggregated sink routes organization-wide copies to a single destination, and an analytics tool scans the centralized data for threats. This architecture creates one authoritative audit trail that no local project owner can delete or bypass.
Cloud Audit Logs are the foundation of the audit trail and record who did what, when, and to which resource. Admin Activity audit logs are enabled by default, while Data Access audit logs for data reads and writes, token generation such as GenerateAccessToken, and service-specific platform logs must be manually enabled because they increase ingestion cost. Each audit entry is a LogEntry whose protoPayload contains an AuditLog object with AuthenticationInfo for user identity, methodName for the event type, timestamp, request and requestMetadata for origination, response for success or failure, and serviceData for the affected service.
Comprehensive coverage requires network and workload logs beyond audit logs:
Prioritize which logs to enable with threat coverage in mind, then limit volume by scoping expensive logs to sensitive subnets and workloads. Flow Logs combined with strict egress firewall rules make outbound traffic to authorized endpoints auditable and difficult to circumvent.
Access visibility in Google Cloud spans two trust boundaries: actions by the customer's own admins and actions by Google personnel. Cloud Audit Logs provide visibility into the customer's own administrator and data access activities but do not track manual access by Google support or engineering. Access Transparency (opens in a new tab) closes that gap with near real-time logs of targeted access by authorized Google personnel when they support the organization or maintain service availability.
Access Approval adds control on top of visibility by requiring explicit customer approval before an authorized Google administrator can access data or configurations. Approved requests are logged with Access Transparency logs linked to the approval request, and access must still be properly privileged inside Google before it is permitted. Use Access Transparency for detection of provider-side access and Access Approval when highly sensitive data requires prior authorization.
A Cloud Logging aggregated sink routes copies of logs from an organization or folder, including all contained folders, projects, and billing accounts, to a single centralized destination. Data flows from the source resources to the sink defined at the parent, then from the sink to the destination log bucket, BigQuery dataset, or Cloud Storage (opens in a new tab) bucket, where the analytics tool reads the aggregated data. The sink uses its own writer identity that must be granted write access to the destination, while analysts are granted separate read access only on the destination so source projects cannot alter the central copy.
Setting up security log analytics follows an ordered workflow:
Exam tip: Admin Activity audit logs are on by default, while Data Access audit logs must be explicitly enabled and increase Cloud Logging ingestion cost.
Centralized destinations in Google Cloud must enforce immutability, encryption, and least-privilege access to satisfy audit and compliance retention. Cloud Storage bucket locks make stored audit objects immutable and non-deletable for a configured period from seconds to years for long-term, tamper-proof retention. Cloud Logging log buckets store logs for Observability Analytics with granular IAM-restricted read access, so only security operations roles can view sensitive logs. Retention policies on log buckets balance security and compliance needs against storage cost.
Protect the storage boundary with the same controls used for production data. VPC Service Controls (opens in a new tab) defines a security perimeter around Cloud Storage buckets, BigQuery datasets, and Bigtable instances to constrain data and mitigate exfiltration, while strict egress rules restrict internet-bound traffic. Optionally stream log copies to both Cloud Storage for immutable archiving and BigQuery for large-scale analysis, since BigQuery is optimized to query large datasets and supports near real-time export.
Analysis in Google Cloud turns the centralized trail into detection by establishing baselines for normal behavior and scanning for anomalies, suspicious flows, and policy violations. Google Security Operations (formerly Chronicle) correlates events from multiple sources for real-time analysis and incident response, while Security Command Center provides managed detectors for malware, cryptomining, port scans, brute-force SSH, and anomalous impersonation that rely on the routed Cloud Logging data. Network Analyzer, Cloud Intrusion Detection System (Cloud IDS), and Cloud Next Generation Firewall (NGFW) intrusion prevention monitor traffic for unusual protocols, unexpected connections, and spikes in transfer that can indicate attack.
The choice of analytics destination determines the query method:
| Destination | Analytics tool | Choose when |
|---|---|---|
| Cloud Logging log bucket | Observability Analytics with SQL | Centralized operational search and CSA SQL queries are needed in Logging |
| BigQuery dataset | BigQuery with SQL | Large-scale, long-term analysis over very large log volumes is needed |
| Cloud Storage bucket | Export to Google Security Operations or third-party SIEM | Immutable archiving plus YARA-L or SIEM-specific correlation is needed |
Continuously analyze network traffic flows, firewall evaluations, and authentication events to identify suspicious patterns and potential attacks. Monitoring alerts based on intrusion attempts, firewall violations, and anomalous service account use notify the security operations center, which then investigates with the centralized, tamper-proof logs as evidence.
Continuous threat detection and security alerting is the practice of collecting logs and asset data centrally, scanning them automatically for vulnerabilities and active threats, and routing findings to alerting and response workflows. In Google Cloud, Security Command Center (SCC) provides the central detection findings, Cloud Logging provides the log stream and alerting, Cloud Monitoring tracks behavioral anomalies such as service account key usage, and Google Security Operations (opens in a new tab) (Google SecOps) correlates events for investigation and response.
Centralized logging and monitoring collects security logs from all cloud resources into one analysis point so normal behavior can be baselined and deviations can be detected. The baseline for normal network behavior is built from continuous analysis of network traffic flows, and suspicious patterns are flagged when traffic deviates from that baseline. Network Analyzer, part of Network Intelligence Center, provides insight into network performance and security by highlighting unusual protocols, unexpected connections, and sudden spikes in data transfer that can indicate malicious activity or anomalous egress. Assume an attacker is already inside the environment, so consistent security configurations are enforced with configuration management and infrastructure as code while monitoring continues for lateral movement and exfiltration.
Security Command Center (opens in a new tab) is the organization-level posture and threat platform that automatically creates findings for threats, vulnerabilities, and misconfigurations. SCC should be enabled at the organization level with the Premium tier to unlock full detection, attack simulation, and compliance capabilities, and all built-in services in the tier should be left enabled so new and changed resources remain protected. SCC findings come from multiple built-in detection services:
Prioritize remediation by vulnerability severity and potential impact, and define a high-value resource set with resource value configurations so findings that expose the most important resources receive higher attack exposure scores. Until the first resource value configuration is created, SCC uses a default high-value resource set that is not customized to security priorities.
Event Threat Detection depends on logs generated by Google Cloud, and its coverage depends directly on which logs are turned on. Cloud Logging Admin Activity audit logs are always on and are scanned as soon as Event Threat Detection is enabled, while most Data Access audit logs and Google Workspace logs are off by default and must be enabled before scanning can occur. After a log is enabled, Event Threat Detection starts scanning it automatically, with logging ingestion and storage charges applying to enabled logs. Which additional logs to enable depends on the Google Cloud services in use and business security needs.
For organization-specific threats, SCC Premium supports custom detection that monitors the same Logging stream with organization-defined parameters. Custom modules for Security Health Analytics define rules for vulnerabilities, misconfigurations, or compliance violations, custom modules for Event Threat Detection define threat rules over log events, and custom cloud controls in Compliance Manager evaluate properties of scanned resources. Compliance Manager frameworks then monitor compliance continuously and alert on posture drift.
Exam tip: Admin Activity audit logs are always on for Event Threat Detection, while most Data Access audit logs must be explicitly enabled before Event Threat Detection can scan them.
Unauthorized IAM modifications and credential abuse are detected by combining Cloud Audit Logs alerts, Cloud Monitoring, and SCC threat findings. In Cloud Audit Logs, configure alerts on iamcredentials.googleapis.com methods such as GenerateAccessToken, GenerateIdToken, and SignJwt to audit service account token generation, which requires Data Access logs to be enabled. Configure alerts on protoPayload.authenticationInfo.serviceAccountDelegationInfo.firstPartyPrincipal.principalEmail to audit user and service account impersonation, and on sts.googleapis.com exchange requests for anomalous identity assertions from Workload Identity Federation. Monitor service account key usage anomalies in Cloud Monitoring, monitor user logins in Google Workspace and Cloud Identity exported to Cloud Logging, and monitor Chrome Enterprise Premium and VPC Service Controls (opens in a new tab) logs for out-of-perimeter access attempts with stolen tokens.
In SCC, monitor Event Threat Detection findings that signal persistence, evasion, privilege escalation, and initial access:
Each finding includes recommended investigation steps, and the security operations center (SOC) must be notified promptly with playbooks, tools, and cross-console access to respond to suspected compromise. Scan code repositories for leaked secrets with Anomaly Detection or secret scanning, and reduce persistent key risk by enforcing organization policy constraints for disabling service account key creation and upload (opens in a new tab).
Alerting connects SCC findings and log signals to notification and response systems without losing context. Set up alerts in Cloud Logging for SCC operational issues, including errors from the SCC service agent, and create log-based alerts for high-risk audit patterns such as IAM policy changes and anomalous egress. For network-layer threats, Cloud IDS (Intrusion Detection System) monitors traffic for malicious activity and generates alerts, while the Cloud NGFW intrusion prevention service can automatically block suspicious events. Strict egress firewall rules restrict internet-bound traffic, VPC Service Controls establish perimeters around sensitive APIs to prevent data exfiltration, and Google Cloud Armor protects the edge against distributed denial-of-service (DDoS) attacks, cross-site scripting (XSS), and SQL injection (SQLi).
Long-term routing of logs uses dedicated sinks that separate active analysis, retention, and external integration:
| Sink | Destination | Purpose |
|---|---|---|
sk-c-logging-la | Cloud Logging bucket with Log Analytics and linked BigQuery dataset | Actively analyze logs with Logs Explorer and SQL queries, reports, and views |
sk-c-logging-bkt | Cloud Storage bucket, optionally with Bucket Lock | Store logs long-term for compliance, audit, and incident tracking |
sk-c-logging-pub | Pub/Sub topic | Export logs to external SIEM or to Google SecOps for correlation |
SCC findings flow from SCC to triage through Pub/Sub export, folder-level and project-level roles for scoped review, or direct ingestion into Google SecOps. Google SecOps provides security information and event management (SIEM) to search logs across clouds and define detection rules, plus security orchestration, automation, and response (SOAR) to manage cases and response workflows. When SCC service agents operate across VPC Service Controls perimeters, configure ingress and egress policies so Event Threat Detection, Security Health Analytics, Container Threat Detection, and related agents retain access to the services they protect. Secure enterprise foundations (opens in a new tab) define the baseline detective controls that make this triage consistent across folders and projects.
Execute incident response, forensics, and automated remediation is the end-to-end workflow that detects a security event, contains the damage, preserves evidence, and restores normal service. The workflow assumes an attacker is already inside the environment, so it relies on centralized logging, continuous monitoring, and predefined playbooks rather than perimeter trust alone. Detection feeds investigation, investigation drives containment and recovery, and every incident feeds threat indicators and improvements that strengthen future detection.
Assume-breach detection is the practice of collecting and analyzing security signals from all cloud resources to find anomalies even when no perimeter alert has fired. Cloud Logging manages and analyzes logs from services in Google Cloud, while Cloud Monitoring measures performance of services and resources and generates alerts from logs and metrics. Baselines for normal network behavior are established first, then network traffic flows are continuously analyzed to identify suspicious patterns and potential attacks.
Several Google Cloud services divide monitoring work by signal type:
Credential compromise monitoring is the focused detection of stolen or abused identities using audit logs, token telemetry, and threat findings. Cloud Audit Logs provide administrator activity and data access records, and Data Access logs must be enabled to audit service account token generation through iamcredentials.googleapis.com methods such as GenerateAccessToken, GenerateIdToken, and SignJwt. Impersonation is audited through protoPayload.authenticationInfo.serviceAccountDelegationInfo.firstPartyPrincipal.principalEmail, while sts.googleapis.com exchange requests are monitored for anomalous identity assertions.
The security operations center (SOC) triages these signals alongside identity and perimeter telemetry:
Enforce constraints/iam.disableServiceAccountKeyCreation and constraints/iam.disableServiceAccountKeyUpload organization policy constraints to reduce reliance on downloadable service account keys, and prefer more secure authentication alternatives such as Workload Identity Federation, OAuth 2.0, or signed JSON Web Tokens (JWTs).
Containment, eradication, and recovery is the response phase that limits ongoing damage, removes the attacker, and restores systems to a healthy state. When a ransomware attack is detected, the team first activates the incident response plan, confirms the incident is not a false positive and affects Google Cloud services, then opens a P1 support case with Cloud Customer Care (opens in a new tab). Customer Care responds under the Google Cloud Technical Support Services Guidelines and takes appropriate containment, eradication, and recovery actions within Google Cloud while the customer team coordinates internally.
The response plan removes the threat and restores the environment through coordinated operational steps:
A cryptomining or ransomware playbook must also define how to file the support case, how to distinguish legitimate high performance computing (HPC) workloads from mining through project tags and cost alerts, who must be notified, what must be logged for retrospective analysis, and how to verify remediation removed the malicious activity and closed the initial vulnerability.
The formal data incident response lifecycle is the ordered process that moves an event from detection through triage, investigation, recovery, communication, and program improvement. The goal is to protect customer data, restore normal service quickly, and meet regulatory and contractual requirements. Independent security teams separate from core engineering provide oversight of the investigation.
The lifecycle proceeds in order, with each stage depending on the prior stage:
Detection sources that feed identification include automated network and system log analysis, behavioral anomaly detection, penetration tests and intrusion detection, internal code reviews, product-specific tooling, privileged access monitoring of Google personnel access to customer resources, data center alerts, and employee reports. Machine learning correlates separate low-volume signals that share operational signatures to expose coordinated campaigns that simple rule-based filters might miss. Google's security overview (opens in a new tab) describes how this lifecycle fits within layered platform protections.
Forensics and evidence handling is the disciplined collection, analysis, and preservation of logs and system state to determine scope, intent, and attacker technique. Dedicated incident response staff are trained in forensics and handling of evidence using third-party and proprietary tools. Activities involving access to user data, source code, and sensitive information are logged with a required business justification or exception, and strong authentication allows logs to distinguish human events, service events, and service impersonation events.
When a policy violation is detected, the security team reviews whether access was intentional, unintentional, accidental, caused by a bug or misconfiguration, or caused by inadequate controls such as stolen employee credentials. If access was unintentional, the team takes immediate remediation such as recovering intellectual property. If malicious behavior is suspected, the team escalates, collects data and system access logs to determine scope and impact, and refers the case for additional investigation, documentation and resolution, or to outside authorities in extreme cases. All incidents are documented and metadata is extracted to identify specific tactics, techniques, and procedures, which are then used to develop new threat indicators, reinforce protections, or request security improvements. AI tools auto-populate a postmortem draft from timelines, chat logs, and metadata, and follow-up work is tracked with assigned owners until remediation concludes. Privileged access controls (opens in a new tab) ensure forensic access to sensitive data remains justified and auditable.
Incident notifications and AI guardrails are the controls that route alerts to the right people and keep automated assistance auditable. Notifications about data incidents are sent through Essential Contacts, with the Google Admin console providing additional account, service health, and mandatory announcements. If Essential Contacts is not configured, messages go to organization administrators, project owners, or billing administrators depending on scope. Senders use an @google.com address and messages typically include affected services and projects, issue description, detection time, unique incident identifier, and links to dashboards or support resources.
To ingest notifications into response workflows, configure an incident response group email for the Security or All category in Essential Contacts, grant security administrators the Advisory Notifications Viewer role (roles/advisorynotifications.viewer) to view advisories in the Google Cloud console, and create Cloud Monitoring alerts from logs and metrics. During response, AI enriches context under strict limits: machine learning correlates signals during identification, AI agents suggest potential root causes and resolutions during investigation, and AI is prohibited from executing commands directly during resolution. AI instead generates structured action payloads that must pass validation checks and receive explicit human-in-the-loop confirmation, with all AI actions recorded in immutable audit logs. Zero trust principles (opens in a new tab) require this explicit verification instead of implicit trust in automated actions.
Exam tip: AI may suggest resolutions during investigation, but during resolution AI must not execute commands directly; the structured payload requires validation and explicit human confirmation before it is applied.
Access Transparency provides near real-time logs of targeted access by authorized Google personnel when they support the organization or maintain service availability. Access Approval adds control on top of visibility by requiring explicit customer approval before an authorized Google administrator can access data or configurations, with approved requests logged with Access Transparency logs linked to the approval request.
Use a Cloud Logging log bucket when centralized operational search and Community Security Analytics SQL queries are needed in Logging. Use a BigQuery dataset when large-scale, long-term analysis over very large log volumes is needed, and use a Cloud Storage bucket when immutable archiving plus YARA-L or security information and event management correlation is needed.
A Cloud Logging aggregated sink routes copies of logs from an organization or folder, including all contained folders, projects, and billing accounts, to a single centralized destination such as a log bucket, BigQuery dataset, or Cloud Storage bucket. The sink uses its own writer identity that must be granted write access to the destination, while analysts are granted separate read access only on the destination so source projects cannot alter the central copy.
A security operations team is designing an automated, event-driven incident response pipeline in Google Cloud. When Cloud Audit Logs detect high-risk operations—such as unauthorized service account key creation or a suspicious modification on a Compute Engine instance—the pipeline must immediately execute a 2nd gen Cloud Function to isolate the workload, disable the compromised key, and capture forensic disk snapshots.
Which configuration correctly sets up the event trigger and required IAM permissions to automate this remediation workflow?
Configure an Eventarc trigger routed through VPC Flow Logs, and grant the roles/eventarc.admin role to the default Compute Engine service account.
Configure a Cloud Pub/Sub push subscription targeting the Compute Engine metadata server, and grant roles/pubsub.publisher to the Cloud Run service agent.
Configure an Eventarc trigger filtered on Cloud Audit Log events, and assign the roles/eventarc.eventReceiver and roles/run.invoker roles to the service account used by the trigger.
Create a Cloud Logging sink routed directly to Cloud Tasks, and assign the roles/cloudfunctions.invoker role to the default Google APIs service agent.
Last updated