professional-cloud-data-engineer
Prepare and test your skills
Prepare and test your skills
Ingestion pipeline encryption safeguards sensitive data across transit and storage using either Google-managed or customer-controlled encryption keys. Cloud Storage and Cloud Pub/Sub enforce default encryption at rest using Google-managed keys. Organizations requiring tighter governance can configure customer-managed encryption keys (CMEKs) managed through Cloud Key Management Service (Cloud KMS) or Cloud Hardware Security Module (Cloud HSM) for FIPS-compliant cryptographic storage. For strict regulatory compliance where keys must reside outside the cloud environment, Cloud External Key Manager (Cloud EKM) manages the cryptographic root outside of Google Cloud. When protecting data prior to network transit, applications apply client-side encryption using libraries like Tink before sending data into Google Cloud ingestion endpoints.
Exam tip: Customer-managed encryption keys rotate every 30 days by default and must reside in the exact same geographic region as the Cloud Storage buckets or Pub/Sub resources they protect.
Access control during data ingestion enforces least privilege through identity policies, taxonomy policy tags, and automated data de-identification. Dedicated service accounts perform ingestion tasks using minimal Identity and Access Management (IAM) roles, and administrators employ service account impersonation rather than downloading persistent service account keys. In BigQuery, administrators apply column-level access controls using policy tags organized into sensitivity levels such as Sensitive, Private, and Confidential, where access to a higher-level tag grants access to lower-level tags. Users require the Fine-Grained Reader role on a policy tag to query its associated data in cleartext.
Sensitive Data Protection (formerly Cloud DLP) scans incoming datasets in Cloud Storage and BigQuery to discover, classify, and de-identify sensitive elements like credit card numbers and personally identifiable information. In addition, BigQuery dynamic data masking obscures sensitive column values at query execution time based on the querying user's role. Teams can also apply column-level encryption using AEAD encryption functions, which requires users to possess access permissions for both the target table and the specific Cloud KMS decryption key. Secure architectures typically separate CMEK keys across distinct pipeline stages: one key for ingestion, one for data de-identification, and separate keys for the BigQuery warehouse.
Network security controls establish isolated communication paths to protect ingestion pipelines against unauthorized interception and data exfiltration. Hybrid ingestion architectures route data from on-premises environments to Google Cloud across encrypted Cloud VPN tunnels or dedicated Cloud Interconnect connections. Within the cloud network, administrators configure Virtual Private Cloud (VPC) firewall rules and subnet segmentation to isolate ingestion components from public network segments. VPC Service Controls define security perimeters around managed resources to prevent unauthorized data movement across the perimeter boundary. Resources within private subnets reach Google APIs without traversing the public internet by using Private Google Access.
Ingestion pipeline reliability patterns and audit systems ensure that processing failures are isolated and operational activities are tracked. When unprocessable records enter a pipeline, a dead-letter queue pattern isolates the failing messages into a secondary topic for investigation while allowing the primary pipeline to continue processing. Dataflow manages both stream and batch processing pipelines with built-in retry mechanisms and automated error handling to maintain system resilience. For storage resiliency, Cloud Storage offers regional and multi-region bucket configurations, while Pub/Sub supports message storage policies that constrain where message data resides.
Cloud Audit Logs capture operational activity across the ingestion infrastructure, recording administrative modifications automatically in Admin Activity audit logs and tracking read operations through Data Access audit logs. Cloud Logging can be configured to store log buckets in specific geographic regions to satisfy regional data residency requirements. Cloud Monitoring tracks ingestion throughput, pipeline latency, and worker health, triggering automated alerting policies when performance thresholds are breached. Teams use Security Command Center for centralized vulnerability and threat monitoring, and they export logs to BigQuery for long-term security analysis.
Real-time messaging services ingest high-velocity data streams from distributed sources to deliver continuous event processing for live dashboards, fraud detection, and real-time personalization. Google Cloud provides three streaming messaging technologies tailored to different scalability, operational overhead, and compatibility requirements:
| Service | Operational Model | Capacity and Scaling | Best Fit |
|---|---|---|---|
| Cloud Pub/Sub | Fully managed, global, serverless messaging | Automatically scales capacity to match dynamic ingestion volume | Global, high-volume event streams requiring zero infrastructure management |
| Cloud Pub/Sub Lite | Zonal or regional messaging with provisioned capacity | Requires manual capacity provisioning of partitions and throughput | Predictable, steady-state streaming workloads with strict cost targets |
| Managed Service for Apache Kafka | Fully managed Apache Kafka cluster | Managed infrastructure supporting native Kafka scaling semantics | Workloads requiring strict API compatibility with existing Apache Kafka tools |
Exam tip: Cloud Pub/Sub scales capacity globally and automatically with zero provisioning, whereas Cloud Pub/Sub Lite requires manually provisioning partitions and throughput to achieve lower messaging costs.
Streaming ingestion configurations must handle event sequence preservation, subscriber connections, and downstream system delivery. When downstream systems require strict ordering, message publishers assign ordering keys so that Cloud Pub/Sub delivers events sharing a key in published sequence while managing message deduplication. Ingestion architectures choose between push subscriptions, which deliver messages directly to HTTPS endpoints, and pull subscriptions, which allow consumer services like Dataflow to pull messages at their own processing rate. Schema evolution policies allow teams to modify data contracts over time without breaking active subscribers that rely on older schema structures.
After ingestion into Pub/Sub topics, messages flow into downstream processing and analytics platforms:
A four-step process flow showing publishing sources sending events to a Cloud Pub/Sub topic, which delivers them via a pull subscription to Dataflow for transformation, and then into BigQuery for SQL analytics or Cloud Storage for archival, with a dead-letter queue for repeatedly unacknowledged messages and a reliability band for Cloud Monitoring and Audit Logs.
Batch data transfer mechanisms move large, static datasets into Google Cloud storage and analytics systems using managed network services or physical appliances. Selecting the proper transfer tool depends on the source data location, available network bandwidth, and the destination storage service in Google Cloud:
| Transfer Solution | Source Environment | Target Destination | Operation Style |
|---|---|---|---|
| Storage Transfer Service | External cloud storage (such as Amazon S3) or on-premises storage | Cloud Storage | Fully managed online transfer supporting scheduled, recurring jobs |
| Transfer Appliance | On-premises data centers with limited bandwidth | Cloud Storage | Physical offline storage device loaded on-site and shipped to Google |
| BigQuery Data Transfer Service | SaaS applications, Amazon Redshift, or Snowflake | BigQuery | Automated online transfer helper managing schema mapping and scheduling |
Exam tip: Transfer Appliance bypasses outbound network bandwidth limitations entirely by physically shipping high-capacity hardware to a Google upload facility.
Evaluating transfer methods requires balancing available network bandwidth against total data volume while enforcing strict data integrity checks. Engineers evaluate three key criteria when designing a batch migration strategy:
When using Storage Transfer Service, the managed service verifies data integrity via checksums automatically and allows administrators to configure recurring transfer schedules without writing custom code. When ingesting into the analytical warehouse, BigQuery Data Transfer Service automates data extraction, schema mapping, and load schedules while applying IAM access controls and customer-managed encryption keys.
Cloud Pub/Sub is a fully managed, global, serverless messaging service that automatically scales capacity to match dynamic ingestion volume. Cloud Pub/Sub Lite is a zonal or regional messaging service requiring manual capacity provisioning of partitions and throughput, designed for predictable, steady-state streaming workloads with strict cost targets.
Transfer Appliance should be used when transferring large datasets from on-premises data centers with limited available network bandwidth, as it bypasses bandwidth limitations entirely by physically shipping high-capacity hardware to a Google upload facility. It is an offline transfer solution for moving data into Cloud Storage.
BigQuery administrators apply column-level access controls using policy tags organized into sensitivity levels such as Sensitive, Private, and Confidential. Users require the Fine-Grained Reader role on a policy tag to query its associated data in cleartext, where access to a higher-level tag grants access to lower-level tags.
A media and analytics organization needs to ingest large volumes (over 150 TiB) of raw video assets and recurring batch exports stored across on-premises POSIX file systems into Google Cloud Storage. The organization has an active high-bandwidth Cloud Interconnect connection and requires a solution that:
Which batch transfer solution should the organization implement?
Implement custom bash cron scripts using parallel composite uploads via the Google Cloud CLI
Order and configure a Google Cloud Transfer Appliance for scheduled recurring physical capture and shipment
Configure BigQuery Data Transfer Service scheduled recurring jobs targeting on-premises POSIX file systems
Deploy Storage Transfer Service on-premises agents organized in an agent pool to transfer data directly to Cloud Storage