Prepare and test your skills

Prepare and test your skills

Performance and cost monitoring for a data lake on Google Cloud is the practice of collecting pipeline logs and metrics to expose slow queries, growing storage, and expensive processing. Cloud Logging (opens in a new tab) receives log data from engines and storage services, Cloud Monitoring (opens in a new tab) receives metrics for alerting and dashboards, and audit events add accountability for who changed or read what. Operators correlate those signals in one view to find bottlenecks and right-size resources, while avoiding personally identifiable information (PII) or confidential data in logs.
Cloud Logging and Cloud Monitoring are the native services for capturing real-time logs and metrics from data pipelines. Cloud Logging supports live tailing to view logs as they arrive, and Cloud Monitoring supports alerting on logs so a log condition can trigger a notification. Together the two services track performance and security of lake and lakehouse systems and help detect anomalies that signal failure, bottlenecks, or cost spikes.
Telemetry from a lakehouse query spans metadata and storage because the engine depends on both. When a query is submitted to an Apache Iceberg table, the request follows an ordered path where each stage can add latency or cost:
Monitoring this sequence isolates whether delay or excess processing comes from metadata lookup, authorization, storage reads, or engine execution.
Cloud Audit Logs (opens in a new tab) provide audit trails of API calls in the data lake. Admin Activity audit logs record API calls that modify configuration or metadata and are enabled by default for all Google Cloud services. Data Access audit logs track reads of configuration or metadata and requests that create, modify, or read user-provided data, which shows who accessed data and which reads drive cost.
Cloud Logging can store log data in a specified region to meet data residency requirements. Regionalized logging keeps telemetry and audit evidence inside required boundaries while still allowing centralized dashboards and alerts to monitor storage and processing across projects.
Exam tip: Admin Activity audit logs are enabled by default for all services, while Data Access audit logs are enabled by default for BigQuery and must be explicitly enabled for other services.
Observability for batch workloads depends on naming and retaining the right execution detail. When submitting non-interactive serverless Apache Spark batch workloads, assigning custom batch and job names improves observability because those names become filters in Cloud Logging and the Google Cloud console. First the workload runs with its identifiers, then log entries carry those identifiers, and only after that can operators filter, track, and compare executions to find long-running or repeated jobs that increase cost.
Diagnostic detail for complex pipelines comes from driver logs, executor logs, and standardized environments. Driver logs show orchestration and failure context, while executor logs show per-task behavior such as skew, retries, and resource exhaustion. Session templates for interactive workloads standardize environment configurations across teams, which reduces setup differences that would otherwise obscure performance comparison.
Alerts and dashboards in Cloud Monitoring turn metrics and log signals into action on resource allocation. Metrics flow from pipeline services to Cloud Monitoring, log events flow from Cloud Logging to alerting policies, and notifications flow from those policies to operators. Dashboards provide the shared view where query performance, storage growth, and processing load can be compared over time to identify bottlenecks.
When teams use third-party tools, telemetry can be exported instead of viewed only in Google Cloud. In the export pattern, the partner monitoring service is authorized to connect to the Cloud Monitoring API to ingest metrics, while Cloud Logging exports through log sinks to Pub/Sub for real-time ingestion by partners such as Elastic and Splunk. Datadog can serve as a single pane of glass for monitoring, while Elastic and Splunk can serve as a single pane for logs, and Google Cloud Support retains access to Cloud Logging logs for troubleshooting.
| Destination pattern | How telemetry flows | Operational tradeoff |
|---|---|---|
| Native Cloud Monitoring and Cloud Logging | Metrics flow to Cloud Monitoring and logs flow to Cloud Logging for dashboards, live tailing, and log-based alerts | Logs remain directly available to Google Cloud Support |
| Partner export through Pub/Sub and API | Metrics flow through the Cloud Monitoring API to the partner and logs flow from sinks through Pub/Sub to the partner | Familiar tools, but externally hosted solutions may miss data during network disruption, are not visible to Support, and may add licensing fees |
| Grafana with Prometheus | Prometheus collects on-premises metrics and Grafana reads both Prometheus and Google Cloud metrics | Prometheus supports monitoring only, so logging must be configured separately, and Google does not support these third-party tools |
A final boundary matters when compliance restricts what can leave on-premises. Single-pane designs normally stream monitoring and logging data to the cloud, but sensitive application data can be separated from lower-risk operations data so customer data stays on-premises. Telemetry routing in that split model can use the OpenTelemetry Collector or observIQ BindPlane, with Prometheus and Grafana monitoring on-premises clusters under the same separation principle.
Design security and access monitoring is the practice of defining who can reach data lake resources and proving that only those identities did so. Cloud IAM (opens in a new tab) defines allowed access, Cloud Audit Logs (opens in a new tab) records API calls that show actual access, and Security Command Center (SCC) (opens in a new tab) aggregates misconfigurations and threats into prioritized findings. Together they let operators detect unauthorized activity and demonstrate compliance with data governance policies.
Least-privilege access means every user, group, and service account receives only the minimum permissions needed for its role, such as no-access, read-only, or write. Cloud IAM enforces this foundation through role-based access control (RBAC), which helps prevent data theft, preserve integrity, and limit accidents or attacks in lakes that hold sensitive data. Monitoring then compares real activity against this intended baseline, so unexpected reads, writes, or privilege uses stand out.
Granular IAM design makes that comparison precise. Map product IAM roles to users, groups, or service accounts based on project needs, access patterns, or resource tags, and add IAM policies with conditions to limit access by time, resource, or request context. At the storage layer, set IAM policies on Cloud Storage buckets and managed folders and use dataset, table, row-level, and column-level controls in BigQuery to narrow who can see which slices of data.
Cloud Audit Logs provides the audit trail of API calls against Google Cloud resources and is the primary record for who did what in the data lake. Operators stream real-time pipeline logs through Cloud Logging and metrics and alerts through Cloud Monitoring, while Cloud Audit Logs preserves the authoritative history of configuration changes and data access. Never write PII or confidential data directly into experiment logs or scattered log servers, because that creates a second exposure path outside the governed trail.
The two main audit log types differ in default state, content, and retention:
| Log type | What it records | Default and retention |
|---|---|---|
| Admin Activity audit logs | API calls and actions that modify configuration or metadata | Enabled by default for all services; retained for 400 days |
| Data Access audit logs | API calls that read configuration or metadata, plus requests that create, modify, or read user-provided data | Must be explicitly enabled, including for Cloud Storage; retained for 30 days by default |
Because Data Access logs carry the read path that proves who viewed lake data, a lake without them has no complete access pattern. Move audit logs to Cloud Storage, BigQuery, or another governed store before retention expires when business or compliance rules require longer history or regionalized storage.
Exam tip: Admin Activity logs are on by default and kept 400 days, while Data Access logs must be turned on and are kept only 30 days by default.
Cloud IAM also produces specialized signals for temporary and context-aware access that must be monitored beyond static grants. Principal access boundary (PAB) policies limit the resources a principal can reach even when broader roles exist, and Privileged Access Manager controls just-in-time, temporary privilege elevation for select principals. Every elevation through Privileged Access Manager writes its own audit log entries, so reviewers can trace why access was granted, what it touched, and when it expired.
Context-aware controls add network and device boundaries to the identity check. Extend Identity-Aware Proxy (IAP) policies and Access Context Manager rules to restrict access by source IP address and device attributes, with access re-evaluated each time a user authenticates to sensitive interfaces such as workbench instances. When anomalous access appears from an unexpected network, device, or temporary grant, the combination of IAM conditions, PAB limits, and IAP context shows whether the request crossed an allowed boundary.
Security Command Center (SCC) is the centralized security monitoring and posture management service that aggregates findings across organization, folder, and project resources. The service ingests signals from Cloud Logging, VPC Flow Logs, firewall rule logs, Web Security Scanner, and IAM policy state to identify vulnerabilities, misconfigurations, overly broad access, and indicators of attack. Findings flow from distributed detectors to one SCC view, where security teams can prioritize response instead of checking each project in isolation.
SCC prioritization depends on attack exposure scores and attack paths, which show how an attacker could chain reachable misconfigurations toward high-value lake data. Use those scores to focus first on exposures that combine public reachability, excessive IAM grants, and sensitive buckets or datasets. Regular audits of alerting policy and IAM roles keep the centralized view accurate as teams, tags, and data classifications change.
Audit evidence in a data lake must itself be protected from unauthorized access, modification, and deletion. Cloud IAM allow policies control who can view logs and change log configurations, and buckets that store exported audit logs should use uniform bucket-level access so only bucket-level IAM applies. Application code should also enforce access controls around audit functionality, so routine users cannot disable or edit the trail that monitors them.
A complete audit lifecycle keeps that evidence usable for detection and compliance:
Additional controls such as requiring extra logging for sensitive buckets, requiring audit logging for privileged activities, and requiring IAM logs help prove that high-risk actions were both recorded and reviewed.
Implement data quality and freshness monitoring is the practice of automatically checking that lake data stays complete, correctly shaped, and up to date from ingestion to consumption. Knowledge Catalog (opens in a new tab) provides centralized governance with automatic quality checks and profiles, Sensitive Data Protection (opens in a new tab) discovers and classifies sensitive data, and Cloud Logging (opens in a new tab) and Cloud Monitoring collect pipeline logs, metrics, and audit trails for alerting. Together these services detect missing data, schema drift, stale partitions, and anomalous values before downstream pipelines consume them.
Knowledge Catalog is the organization-wide governance platform that discovers, manages, monitors, and governs data and AI artifacts across platforms. The catalog manages data quality checks and data profiles that verify formats, ranges, and distributions before data is used for analytics or training, which protects validity and guards against issues such as data poisoning. Because checks run automatically against registered assets, inconsistent behavior and unexpected transformations can trigger monitoring and alerting for data and machine learning pipelines.
Knowledge Catalog unifies governance across BigLake and open-format tables such as Iceberg and Delta, and it integrates with managed metastores like Dataproc Metastore and Lakehouse runtime catalog. Metadata from supported Google Cloud sources is automatically ingested into the universal catalog, while sources outside Google Cloud are added as custom entries. Technical metadata can then be enriched with business context:
Sensitive Data Protection is the service for discovering, classifying, and protecting sensitive data such as PII and intellectual property in lake storage. Scans can run at the organization, folder, or project level, including scans of Agent Platform datasets, and resulting data profiles can be stored in BigQuery for analysis. Data loaded through Cloud Storage can be discovered, classified, and de-identified with methods such as pseudonymization, de-identification, and generalization like bucketing, which preserves utility while supporting data minimization.
Inspection results from BigQuery can be sent into Knowledge Catalog as aspects, so quality, sensitivity, and business metadata sit together for governance. Sensitive Data Protection with Model Armor extends protection to large language model interactions by helping prevent unauthorized exposure of sensitive data. This flow moves from raw objects in Cloud Storage to inspection findings to governed catalog entries, so access decisions are based on current classification rather than manual review.
Cloud Logging and Cloud Monitoring provide real-time observability for pipeline execution, performance, and security. Cloud Logging captures streaming live-tail logs from pipeline components, while Cloud Monitoring collects metrics from those logs and from custom metrics that track completeness counts, schema-validation failures, and freshness timestamps. Together the log-to-metric-to-alert flow lets teams detect stalled ingestion, missing partitions, and distribution shifts before stale or bad data spreads.
Cloud Audit Logs adds the audit trail for API activity on lake resources. Admin Activity audit logs are enabled by default for all services and record actions that modify configuration or metadata. Data Access audit logs track reads of configuration or metadata and requests that create, modify, or read user-provided data; they are enabled by default for BigQuery and can be enabled for other services. Log data can be regionalized to meet residency requirements, and PII or confidential data must not be written into experiment logs or separate log servers.
Observability improves when jobs are identifiable and diagnosable. When submitting non-interactive serverless Apache Spark batch workloads, assign custom batch and job names so executions can be filtered and tracked in Cloud Logging and the console. For complex pipelines, enable diagnostic bundles and retain driver and executor logs to support troubleshooting and root-cause analysis of quality and freshness failures.
Freshness and reliability monitoring connects lineage, scheduled checks, and statistical detection into one governance layer. Knowledge Catalog manages table and column-level lineage so an engineer can trace a gold-level aggregate back through silver cleansed data to bronze raw ingestion and identify which upstream delay caused staleness. For feature data, scheduled monitoring of features and feature groups in Agent Platform Feature Store tracks drift and staleness over time rather than relying on one-time validation.
BigQuery supports anomaly detection with statistical methods and machine learning models to flag values that may indicate poisoning, bias, or pipeline breakage. Model evaluation metrics and domain-expert review complement automated detection by catching suspicious patterns that rules miss. This layered approach keeps pipelines reliable: lineage shows where data came from, scheduled quality checks show whether it arrived on time and in schema, and anomaly detection shows whether its content is trustworthy.
Exam tip: Admin Activity audit logs are on by default, while Data Access audit logs must be explicitly enabled except for BigQuery, where they are on by default.
Admin Activity audit logs record API calls that modify configuration or metadata, are enabled by default for all Google Cloud services, and are retained for 400 days. Data Access audit logs record reads of configuration or metadata and requests that create, modify, or read user-provided data, must be explicitly enabled except for BigQuery where they are enabled by default, and are retained for 30 days by default.
Cloud Logging captures pipeline logs with live tailing and Cloud Monitoring collects metrics and log-based alerts for dashboards and notifications. Together they track performance and security of lake and lakehouse systems and help detect anomalies that signal failure, bottlenecks, or cost spikes.
Security Command Center (SCC) is the centralized security monitoring and posture management service that aggregates findings across organization, folder, and project resources. It ingests signals from Cloud Logging, VPC Flow Logs, firewall rule logs, Web Security Scanner, and Identity and Access Management (IAM) policy state and prioritizes them with attack exposure scores and attack paths.
A data platform team is managing an enterprise data lake on Google Cloud where petabyte-scale datasets in BigQuery and Cloud Storage receive continuous updates. The team needs to implement an automated data quality and monitoring framework to meet the following requirements:
Which architecture should the data platform team deploy to satisfy these requirements?
Last updated