Courseiva
hardMultiple Choice

Generative AI Leader Practice Question: A team is building a multi-modal agent that needs…

A team is building a multi-modal agent that needs to accept a user's image of a handwritten note, convert it to text, and then run a sentiment analysis. They want to minimize latency and cost. Which approach is best?

⚠ Common exam trap

Google often tests the candidate's ability to recognize that multimodal models like Gemini 1.5 Flash can replace multi-step pipelines (OCR + NLP) in a single call, and the trap here is that candidates default to traditional separate-service architectures (like Cloud Vision + Vertex AI) without considering the latency and cost benefits of a unified multimodal approach.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

Use Gemini 1.5 Flash with a prompt that includes the image and asks for sentiment analysis in one call

Gemini 1.5 Flash is a multimodal model that can directly process images and perform sentiment analysis in a single API call, eliminating the need for separate OCR and NLP services. This minimizes both latency (by reducing the number of sequential calls) and cost (by using a single, efficient model instead of multiple specialized services).

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    Fine-tune Gemini Pro on handwritten notes and sentiment labels

    Why it's wrong here

    Fine-tuning Gemini Pro on labelled handwritten notes and sentiment data requires a costly training pipeline and labelled corpus, and inference still adds latency. Fine-tuning suits recurring domain-specific tasks with stable label sets, not a one-off image-to-text-to-sentiment pipeline where a pretrained multimodal model already suffices.

  • ✗

    Use Document AI for OCR and then call Codey for sentiment analysis

    Why it's wrong here

    Chaining Document AI OCR with a separate Codey sentiment call adds a second model round trip, increasing latency and cost versus one multimodal model handling both. Document AI is the right pick when high-accuracy OCR of dense forms is the primary requirement and sentiment is not needed.

  • ✓

    Use Gemini 1.5 Flash with a prompt that includes the image and asks for sentiment analysis in one call

    Why this is correct

    Gemini 1.5 Flash natively accepts image input and performs OCR plus sentiment reasoning within a single multimodal inference, eliminating the separate transcription call and its added latency and token cost. This directly satisfies the stem's minimise-latency-and-cost constraint while handling the handwritten note end to end.

  • ✗

    Use Cloud Vision API for OCR, then feed the text to a sentiment analysis model via Vertex AI

    Why it's wrong here

    Using Cloud Vision API for OCR followed by Vertex AI sentiment analysis introduces two separate network hops and processing stages, increasing latency compared to a single integrated model that performs both tasks end-to-end. It is tempting because Cloud Vision excels at handwriting OCR in isolation, and Vertex AI offers robust sentiment models, making this pipeline ideal when each task requires independent optimisation or separate model versioning.

About these practice questions

This Generative AI Leader question is part of Courseiva's 1,008-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This Generative AI Leader practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the Generative AI Leader exam.