Generative AI Leader Cheatsheet
Google Cloud Certified Generative AI Leader
Download free PDFFundamentals of generative AI (30%)
AI and learning approaches
- **Artificial intelligence** performs tasks associated with human intelligence. **Machine learning** learns patterns from data; **deep learning** uses multilayer neural networks. **Natural language processing** works with human language.
- **Generative AI** creates content such as text, images, audio, video and code. Predictive models typically estimate an outcome, category or numerical value.
- **Supervised learning** uses labeled examples: sentiment-tagged reviews, categorized product images or historical tickets paired with resolution times. Classification predicts categories; regression predicts numbers.
- **Unsupervised learning** discovers structure without target labels, such as customer clusters or unusual sensor behavior. Anomaly detection can also use other learning approaches when labels exist.
- **Reinforcement learning** improves actions through rewards and penalties in an environment. A game character learning through trial and error illustrates this approach.
Data types and quality
- **Structured data** follows a defined schema, such as transaction rows. **Unstructured data** includes free-text survey responses, images and documents. **Semi-structured data**, such as JSON, has flexible organization.
- **Quantitative data** represents measurements or counts; **qualitative data** describes meaning or experience. This distinction is separate from whether data is structured or labeled.
- **Labels** supply target outcomes for learning. A review can be unstructured text and still have a sentiment label; unlabeled data lacks the target annotation.
- Assess **accuracy, completeness, consistency, relevance and freshness**. Missing fields, encoding errors and bot traffic can distort results; accessible data must also be authorized and suitable for the task.
- **Representation bias** arises when important groups or situations are missing or underrepresented. Evaluate performance across groups; simply adding more of the same data may preserve the bias.
Foundation models and model choice
- A **foundation model** is pretrained on broad data and adaptable to many tasks. An **LLM** specializes in language; a **multimodal model** handles multiple data types.
- **Gemini** is Google's multimodal model family for tasks such as summarization, drafting, coding and interpreting documents or images. Supported input and output modalities depend on the model.
- **Gemma** is a family of open-weight models for customizable applications, including deployments on suitable local hardware. Check model size, memory, capabilities and license terms.
- **Imagen** specializes in image generation. **Veo** generates video from supported text or image inputs. **Diffusion models** learn to transform noise into structured content through iterative denoising.
- A **context window** limits the tokens available for a request, including relevant instructions and content. A large window helps with long documents but does not guarantee correct interpretation.
- Choose models by **task quality, modality, context capacity, latency, cost, security, reliability and customization**. Test representative workloads rather than assuming the largest model is always best.
The generative AI landscape
- The **infrastructure layer** supplies compute, storage and networking. **GPUs** and Google's custom **TPUs** accelerate parallel machine learning workloads; capacity alone does not ensure useful outputs.
- The **model layer** supplies pretrained capabilities. The **platform layer** supplies development, deployment and management tools. **Applications** expose useful workflows to people.
- **AI-optimized infrastructure** combines accelerators, high-speed networks and supporting software for demanding training and inference. Size it to workload needs and budget.
- Google Cloud combines **pretrained models, APIs, managed services and low-code tools** to shorten development. Model choice and open interfaces support flexibility; integration and operations still need planning.
Agents, workflows and tools
- An **AI agent** combines a model, goal, instructions, context and tools to choose actions. Its **reasoning loop** observes, interprets, plans, acts and uses feedback to decide what comes next.
- A **workflow** follows predefined steps; an agent can select steps dynamically. An order-processing workflow can update inventory and send notifications while retaining explicit business rules.
- **Multi-agent systems** coordinate specialized roles for complex work. They add coordination, cost and failure modes; use them when the task benefits from specialization.
- **Functions** expose defined operations; **extensions or connectors** package integrations; **data stores** supply retrievable knowledge. Tool naming varies, but permissions and actual execution belong in the application.
- Use **live APIs and databases** for inventory, account balances or travel availability. Models propose calls; authorized software validates inputs, executes actions and returns results.
- Agent roles reflect their work: **security agents** assist investigation, **code agents** assist development, **customer service agents** support customers, and **productivity agents** assist employees.
Google Cloud's generative AI offerings (35%)
Build and manage AI solutions
- **Gemini Enterprise Agent Platform** unifies model and agent development, deployment, governance and optimization. **Agent Studio** provides a visual environment for prototyping models and agent workflows.
- **Google AI Studio** provides a quick way to explore Gemini prompts and supported generation settings. Choose the cloud platform environment when enterprise deployment and governance are central requirements.
- **Model Garden** helps discover and select Google, partner and open models. **Model Registry** organizes model versions and metadata; keep linked code, data and experiment records for reproducibility.
- **Pipelines** orchestrate repeatable ML steps. **AutoML** helps train task-specific models from prepared data, such as labeled product images, without building every training component manually.
- The **ML lifecycle** moves from ingestion and preparation to training, evaluation, deployment and management. **Monitoring** detects production problems; a **feature store** manages reusable ML features.
- Use **Pub/Sub** for event ingestion, **Cloud Storage** for objects and documents, **Cloud SQL** for relational transactions, and **BigQuery** for analytical queries. These data services support AI rather than replace its models.
Prebuilt tools for employee work
- The **Gemini app** supports general-purpose assistance. **Gems** save reusable instructions, such as an industry focus and report format; they do not inherently schedule reports or ensure fresh facts.
- **NotebookLM** helps explore supplied sources, ask questions and synthesize document-based insights with citations. Check cited passages and verify extracted figures before using them in reports.
- **Gemini for Google Workspace** brings assistance into familiar work such as drafting emails and documents. **Google Vids** supports workplace video creation; verify available features and licensing.
- **Gemini Enterprise** connects enterprise knowledge and agents to employee work. Search across authorized systems can reduce knowledge silos and support tasks such as lead research and CRM updates.
- **Gemini Code Assist** supports coding tasks such as suggestions and completion. Generated code, refactoring and unit tests can reduce effort but still require review, execution and security checks.
Search, discovery and grounded answers
- **Agent Search** supplies managed enterprise search over connected content and can support grounded answers. Retrieval over company documents is distinct from searching the open web.
- **Prebuilt RAG** combines retrieval and generation with less custom plumbing. **RAG APIs** offer building blocks for ingestion and retrieval within a custom application.
- **Grounding with Google Search** supports questions needing current public information, such as developing news. Private company policies or purchase records require authorized first-party sources.
- **Multimodal search** lets users express needs through supported text, images or voice. Better product discovery can improve engagement, satisfaction and conversion.
- **Commerce search and recommendations** address retail discovery and personalized suggestions. Evaluate relevance and business outcomes; recommendations and employee intranet search serve different audiences.
Customer engagement components
- **Conversational Agents** automate customer conversations using supported deterministic flows and generative capabilities. Escalate unsupported or sensitive requests to a human.
- **Agent Assist** supports live representatives during interactions with guidance, relevant information and response suggestions. The representative remains responsible for the customer interaction.
- **Conversational Insights** analyzes existing conversations for topics, sentiment and service trends. It helps identify recurring issues and opportunities to improve support.
- **Google Cloud Contact Center as a Service** supplies contact-center infrastructure such as channel handling and routing. The **Customer Engagement Suite** combines complementary customer experience capabilities.
Specialized APIs and agent integrations
- **Document AI** extracts and structures information from documents, including supported forms and scanned PDFs. Validate critical extracted fields before downstream financial decisions.
- **Cloud Vision** analyzes image content. **Natural Language API** analyzes text. **Speech-to-Text**, **Text-to-Speech** and **Translation** address dedicated speech and language tasks.
- Choose a **prebuilt API** when it already meets a narrow need; use a configurable agent when work requires reasoning, retrieval and multiple actions across systems.
- **Cloud Run** and functions can host tool logic or APIs. Travel reservations and CRM updates require authenticated integrations, input validation and controlled side effects, not just a generated text response.
Techniques to improve model output (20%)
Prompt engineering essentials
- **Prompt engineering** designs and refines instructions to guide responses. State the task, audience, relevant context, constraints and desired output format; define what a good result looks like.
- **Zero-shot** gives no examples, **one-shot** gives one, and **few-shot** gives several. Examples demonstrate patterns such as tone, classification labels or response structure.
- **Role prompting** sets a perspective, such as an empathetic support representative. A role description does not supply missing corporate knowledge or override company policy.
- For marketing content, specify **audience, tone, brand facts and required benefits**. More tokens or a higher temperature cannot compensate for a vague task or absent product details.
- Use representative examples and **iterate against a quality rubric**. Include difficult inputs and verify that improvements generalize beyond the examples used to design the prompt.
Multi-step work and conversation context
- **Prompt chaining** breaks work into stages, passing one stage's output into the next. For example: identify a support issue, retrieve relevant guidance, then draft a response.
- **Conversation history** supplies earlier turns to the model. The application must retain and send relevant state or summaries; chaining alone does not create persistent memory.
- **Chain-of-thought prompting** encourages intermediate reasoning; **ReAct** combines reasoning and actions with observations. A plausible explanation does not prove that the final answer is correct.
- Keep **relevant context** within the model's window. Preserve important constraints and verified state when summarizing; authenticate the customer before retrieving account-specific information.
Generation settings and safety
- **Temperature** adjusts sampling randomness: lower values generally favor more predictable responses; higher values encourage variety. It does not guarantee factuality or determinism.
- **Top-p**, or nucleus sampling, limits token selection to a probability mass. Tune supported sampling controls against the task rather than treating them as accuracy settings.
- **Maximum output tokens** cap response length and can truncate an answer. For concise summaries, specify a short format in the prompt and allow enough tokens to complete it.
- **Safety settings** filter selected harmful content categories. They do not verify facts, enforce data access permissions or replace privacy controls and human judgment.
Grounding, RAG and customization
- **Grounding** ties responses to supplied or retrieved information. Choose **first-party data** for company facts, licensed **third-party data** for specialized knowledge, and public sources for world information.
- **Retrieval-augmented generation (RAG)** retrieves relevant passages and adds them to the request before generation. Refresh the underlying index to reflect policy or product changes.
- A typical **RAG flow** ingests and indexes documents, retrieves relevant content, generates a grounded response and validates it. Enforce source permissions and assess retrieval as well as answer quality.
- **Fine-tuning** changes model weights using training examples to adapt behavior or specialized task performance. **Prompt tuning** learns prompt parameters; manual prompt engineering edits textual instructions.
- Use **RAG for changing knowledge** and consider tuning for persistent behavioral needs. Neither automatically grants database access; live balances or inventory require an authorized query.
- Ask for **evidence-supported answers** and an explicit insufficient-information response when sources are inadequate. Grounding and citations reduce unsupported claims but do not eliminate them.
Limitations, review and evaluation
- A **hallucination** is an unsupported or fabricated output, possibly expressed confidently. A **knowledge cutoff** limits pretrained knowledge; current retrieval can help supply newer facts.
- **Data dependency** makes model behavior sensitive to training coverage and quality. **Overfitting** means learning training-specific patterns that generalize poorly; bias and stale language are distinct risks.
- **Edge cases**, sarcasm and nuanced opinions can defeat otherwise useful summaries. Use **human-in-the-loop review** where intent, harm or business impact makes errors consequential.
- Evaluate **factuality, grounding, task completion, harmful outputs and group-level performance**, alongside latency and cost. Monitor drift and user feedback; retest after model, prompt or data changes.
Business strategies for successful AI (15%)
Business value and use-case fit
- Start with a **specific business problem and desired outcome**. Prioritize value, feasibility, data readiness, risk and integration effort before choosing a model or platform.
- Use generative AI to **create, summarize, discover and assist**: draft communications, synthesize reports, improve product discovery or suggest code. Keep important facts and outputs reviewable.
- **Automate bounded, repeatable work** when validation and recovery are practical. Fixed rule-based decisions usually fit conventional rules or software; generative AI can assist with surrounding language tasks.
- **Augment human judgment** in strategy, creative work and consequential decisions. Strict eligibility checks need validated criteria; a fluent model response is insufficient for an accountable loan decision.
- Measure **business KPIs** against a baseline: time saved, error rate, resolution time, customer satisfaction or conversion. Include integration, inference, review and maintenance in total cost.
Adoption and continuous improvement
- Combine **top-down sponsorship** with **bottom-up experimentation**. Leaders set direction and fund priorities; teams identify concrete workflow opportunities and supply practical feedback.
- **Middle managers** translate goals into feasible team use cases, redesign workflows and support adoption. Data, security and technical teams supply appropriate data access and operational controls.
- Run a **bounded pilot**, evaluate representative users and failure cases, then expand with measurable acceptance criteria. Train staff, assign owners and provide escalation and fallback paths.
- Continuously **test, measure and refine** using production outcomes. Version prompts, models and data configurations; assess upgrades before rollout and retain a rollback path.
Security throughout the AI lifecycle
- **Secure-by-design infrastructure** builds protection into hardware, networks and platform foundations. Customers still configure identities, data access and applications appropriately.
- **Identity and Access Management (IAM)** controls who can perform which actions on resources. Apply least privilege to people, service accounts and agent tools; separate read access from permission to change data.
- **Security Command Center** centralizes security posture and threat findings. **Workload monitoring and observability** track application behavior, failures and suspicious activity.
- Protect **collection, preparation, training, deployment and operations** through access controls, encryption, integrity checks, secure artifacts, updates and logging. Google's **Secure AI Framework (SAIF)** extends security practices to AI risks.
- Treat retrieved documents and tool output as **untrusted input**. Defend against prompt injection and data leakage with scoped access, validated tool calls, output checks and approval for consequential actions.
Privacy, fairness and accountability
- Use **data minimization** and authorized purposes. Remove or mask unnecessary personal information before training or prompting; restrict raw data access and define retention rules.
- **Anonymization** aims to prevent identification; **pseudonymization** replaces identifiers but can remain linkable through additional information. Assess reidentification risk rather than assuming masking removes all privacy concerns.
- **Fairness assessments** compare outcomes across relevant groups and investigate underrepresentation or proxy variables. Better explanations alone do not correct discriminatory outcomes.
- **Transparency** explains where AI is used and how data is handled. **Explainability** makes decision factors understandable; generated rationales require validation against the actual decision process.
- **Accountability** assigns owners, human oversight and routes to challenge or correct outcomes. For consequential decisions, preserve evidence, review adverse results and provide meaningful recourse.