Data and machine learning on Google Cloud
This topic covers how Google Cloud stores, processes and learns from data. The Digital Leader exam wants you to match a business need to the right managed service, not to write code.
The data lifecycle
- Ingest: Pub/Sub for real-time streaming messages, Storage Transfer Service and Transfer Appliance for bulk moves.
- Store: pick a database by shape and access pattern, not habit.
- Process/analyse: Dataflow (stream and batch), Dataproc (managed Hadoop/Spark), BigQuery.
- Visualise: Looker and Looker Studio turn query results into dashboards.
- Activate with AI: Vertex AI and pre-trained APIs.
Choosing a database - the exam loves this
- Cloud SQL: regional relational database, MySQL, PostgreSQL or SQL Server; good for smaller transactional apps.
- Spanner: globally distributed relational database with strong consistency and near-unlimited scale; use when you need SQL AND horizontal scale across regions.
- Firestore: NoSQL document database for mobile and web apps needing real-time sync.
- Bigtable: NoSQL wide-column database for huge volumes of fast-changing analytical or IoT/time-series data, low millisecond latency.
- BigQuery: serverless data warehouse for petabyte-scale SQL analytics, not for transactional apps.
- Memorystore: managed in-memory store (Redis/Memcached) for caching.
BigQuery essentials
- Fully serverless: no infrastructure to manage, storage and compute scale and bill separately.
- Pricing has two models: on-demand (pay per byte scanned per query) or capacity-based (flat-rate slots).
- BigQuery ML lets you build and run ML models using plain SQL, no need to move data out.
- BI Engine speeds up dashboard queries with in-memory analysis.
Machine learning options - match the skill level
- Pre-trained APIs (Vision AI, Natural Language AI, Speech-to-Text, Translation AI): zero ML knowledge needed, call an API for common tasks.
- Vertex AI: Google's unified ML platform covering the whole pipeline - AutoML (train custom models with minimal code) through to custom training with your own code and frameworks (TensorFlow, PyTorch).
- Generative AI on Vertex AI (via Model Garden) gives access to foundation models such as Gemini for text, chat, image and code generation.
- The AI/ML spectrum runs: pre-trained API to AutoML to custom training - increasing control but increasing effort and skill required.
Common mistakes to avoid
- Do not confuse Bigtable (NoSQL, operational, huge scale) with BigQuery (SQL, analytical, data warehouse) - similar names, very different jobs.
- Do not pick Cloud SQL when the requirement says 'global scale with strong consistency' - that is Spanner.
- Remember Dataflow and Dataproc are BOTH data processing tools: Dataflow is serverless and built on Apache Beam; Dataproc is for teams already using Hadoop/Spark and wanting a managed cluster.
- AutoML is for people with limited ML expertise wanting a custom model; it is not the same as using a pre-trained API.
What is BigQuery and what is it used for?
A fully serverless, petabyte-scale SQL data warehouse used for large-scale analytics; storage and compute are billed separately.
tap to reveal
Which database offers global scale with strong consistency AND full SQL support?
Cloud Spanner.
tap to reveal
What kind of database is Bigtable, and what workloads suit it?
A NoSQL wide-column database suited to huge-volume, low-latency workloads like IoT and time-series data.
tap to reveal
What is Firestore best suited for?
A NoSQL document database ideal for mobile and web apps that need real-time data sync.
tap to reveal
What is Cloud SQL and what engines does it support?
A fully managed regional relational database supporting MySQL, PostgreSQL and SQL Server.
tap to reveal
How do Bigtable and BigQuery differ, despite the similar names?
Bigtable is an operational NoSQL database for fast-changing data; BigQuery is a SQL analytical data warehouse for large-scale queries.
tap to reveal
What service ingests real-time streaming data on Google Cloud?
Pub/Sub.
tap to reveal
What is the difference between Dataflow and Dataproc?
Dataflow is serverless stream/batch processing built on Apache Beam; Dataproc is a managed service for running existing Hadoop/Spark clusters.
tap to reveal
What does BigQuery ML let you do?
Build and train machine learning models directly using SQL, without exporting data from BigQuery.
tap to reveal
What is Vertex AI?
Google Cloud's unified machine learning platform, covering AutoML, custom model training, and access to generative AI foundation models like Gemini via Model Garden.
tap to reveal
What is AutoML for, and who is it aimed at?
Training custom ML models with minimal code, aimed at users with limited machine learning expertise.
tap to reveal
What are pre-trained APIs like Vision AI and Natural Language AI for?
Ready-to-use APIs for common ML tasks (image analysis, text analysis, speech, translation) requiring no ML expertise.
tap to reveal
What are the two BigQuery pricing models?
On-demand pricing (pay per byte of data scanned) and capacity-based pricing (flat-rate purchased slots).
tap to reveal
Where do you access Google's Gemini foundation models for generative AI tasks?
Through Vertex AI's Model Garden.
tap to reveal
What tool speeds up BigQuery dashboard queries using in-memory analysis?
BI Engine.
tap to reveal