Skip to content
Google Cloud Certified Professional Machine Learning Engineer (PMLE) Exam Prep

Lesson 2 of 10 · 11 min

x
2/10

Domain 1: Architecting Low-Code AI Solutions (Part 2 of 2)

This lesson covers 3 exam topics: Tuning Gemini from BigQuery, Model Garden and AI APIs, Optimizing Gemini Applications. Each topic has a short video, then the notes: key facts, exam traps and what to check in the official docs.

1. Tuning Gemini from BigQuery

Video lesson: PMLE 04/38: Tuning Gemini from BigQuery

Central question: How do you fine-tune Gemini from BigQuery?

Facts

  • Create a remote model over a Gemini endpoint with CREATE MODEL ... REMOTE WITH CONNECTION, add tuning options such as max_iterations, and supply training rows with prompt and label columns in the AS SELECT clause; this runs supervised tuning (BigQuery tuning tutorial).
  • Evaluate the tuned model with ML.EVALUATE, then generate with it from SQL.
  • Supervised tuning helps when the expected behavior is hard to define in a prompt or prompts give inconsistent results: for example a response style or a new behavior.

Exam traps

  • Exporting data to a notebook to tune when the data and the team live in BigQuery.
  • Tuning to add facts that change often. Ground instead; tuning shapes behavior.

2. Model Garden and AI APIs

Video lesson: PMLE 05/38: Model Garden and AI APIs

Central question: Which pre-built model or API should a solution use?

Facts

  • Model Garden offers Google, partner and open models to evaluate, tune and deploy; select by task, modality, quality, cost and latency (Model Garden).
  • Industry and pre-trained APIs: Document AI (extract fields from documents), Vision API (labels, objects, OCR), Translation API; they need no training data.
  • Build on an API first; train a custom model only when labels or accuracy needs go beyond what the API gives.

Exam traps

  • Custom OCR for invoices. Document AI.
  • Choosing only by benchmark score. Test on your own data, including cost and latency.

3. Optimizing Gemini Applications

Video lesson: PMLE 06/38: Optimizing Gemini Applications

Central question: How do you build with Gemini, Imagen, Veo and MaaS while controlling cost, latency and availability?

Facts

  • Model choice: Gemini tiers range from frontier models to Flash and Flash-Lite; Flash-Lite targets high-volume, cost-sensitive, low-latency traffic (Google models page).
  • Imagen 4 API models shut down on August 17, 2026; Gemini image models (Nano Banana) are the recommended replacement; Veo 3.1 is the current video model (checked 2026-10-26).
  • Models as a service (MaaS) in Model Garden call partner and open models through managed APIs without managing infrastructure.
  • Cost and latency levers: smaller model tier, context caching for repeated long context, batch inference for non-urgent work (BigQuery or Cloud Storage input), shorter prompts after tuning, and configurable thinking levels.
  • Availability: handle 429 resource-exhausted errors with retries and backoff, and use consumption options such as Provisioned Throughput or Flex PayGo where needed (deploy overview, consumption options).

Exam traps

  • Online calls for a nightly job of a million prompts. Batch inference is cheaper.
  • Re-sending the same long document every call instead of context caching.

References

  1. PMLE exam guide — checked Oct 26, 2026
  2. Use tuning and evaluation to improve model performance — checked Oct 26, 2026
  3. Model Garden — checked Oct 26, 2026
  4. Google models — checked Oct 26, 2026
  5. Context cache overview — checked Oct 26, 2026
  6. Consumption options — checked Oct 26, 2026

Check your understanding

  • Which columns train the tuned model?Show answer

    Answer

    prompt and label.
  • Read invoice totals?Show answer

    Answer

    Document AI.
  • Cut cost of repeated 500-page context?Show answer

    Answer

    Context caching.
  • How to compare tuned vs base?Show answer

    Answer

    ML.EVALUATE.
  • Compare open and Google models?Show answer

    Answer

    Model Garden.
Previous

Progress is saved in this browser.

Next Lesson