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
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
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
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
- PMLE exam guide — checked Oct 26, 2026
- Use tuning and evaluation to improve model performance — checked Oct 26, 2026
- Model Garden — checked Oct 26, 2026
- Google models — checked Oct 26, 2026
- Context cache overview — checked Oct 26, 2026
- Consumption options — checked Oct 26, 2026
Check your understanding
Which columns train the tuned model?Show answerHide answer
Answer
prompt and label.Read invoice totals?Show answerHide answer
Answer
Document AI.Cut cost of repeated 500-page context?Show answerHide answer
Answer
Context caching.How to compare tuned vs base?Show answerHide answer
Answer
ML.EVALUATE.Compare open and Google models?Show answerHide answer
Answer
Model Garden.