AI Intermediate · 22% practice allocation

AI Intermediate: Google Vertex AI & Gemini Practice Questions

5 free sample questions from the Google Vertex AI & Gemini domain, with answers and explanations. The full AI Intermediate bank has 963 questions across 5 domains. Questions follow the AI Intermediate course content.

1.

An enterprise is building a multi-agent system on Vertex AI Agent Builder. A primary orchestrator agent must delegate tasks to specialized sub-agents: one for HR policy lookups and one for IT ticket creation. The team wants the orchestrator to call sub-agents programmatically and pass context between them. Which Agent Builder capability enables this inter-agent delegation pattern?

  • A. Use Vertex AI Pipelines to orchestrate agent calls as pipeline components, passing outputs between steps via artifact parameters
  • B. Configure the orchestrator agent with multiple Data Stores, one per domain, and use routing rules to select the correct store per query
  • C. Use the Agent Builder Agent-as-a-Tool feature, registering each sub-agent as a callable tool available to the orchestrator agent✓ Correct
  • D. Deploy each sub-agent as a separate Cloud Run service and configure Pub/Sub to pass messages between them outside of Agent Builder
Explanation

Vertex AI Agent Builder supports an 'Agent as a Tool' pattern where a sub-agent is registered as a tool that can be invoked by an orchestrator (parent) agent. The orchestrator's reasoning loop can call the sub-agent tool with structured input and receive its output, enabling context passing and delegation across specialized agents — all within the Agent Builder framework. Using multiple Data Stores with routing rules handles knowledge retrieval, not agent-to-agent delegation with context passing. Deploying sub-agents as Cloud Run services with Pub/Sub is a custom engineering approach that bypasses Agent Builder's managed orchestration and is significantly more complex to maintain. Vertex AI Pipelines is designed for ML workflow orchestration (training, evaluation), not for wiring together live conversational agents at inference time.

2.

An enterprise ML team is planning a Vertex AI supervised fine-tuning (SFT) job for a Gemini model. A junior engineer proposes using the raw chat logs from the production system directly as the training dataset without any preprocessing. Which TWO risks does this approach introduce that the team must address before starting the tuning job?

  • A. Gemini SFT on Vertex AI does not support conversational (multi-turn) data formats, so chat logs must be converted to single-turn prompt-completion pairs
  • B. Vertex AI SFT requires training data to be stored in BigQuery; chat logs stored in Cloud Storage will cause the job to fail at ingestion
  • C. Raw chat logs often include poor-quality, inconsistent, or incorrect responses that, if used as training targets, will degrade model quality rather than improve it✓ Correct
  • D. Raw chat logs may contain personally identifiable information (PII) or sensitive data, which could be memorized by the model and later exposed in completions✓ Correct
  • E. Using chat logs larger than 1 GB will automatically trigger RLHF instead of SFT, changing the tuning objective without the team's knowledge
Explanation

The two valid risks are PII exposure and data quality degradation. Raw production chat logs frequently contain user PII (names, emails, account numbers) which a fine-tuned model can memorize and regurgitate in future responses — a serious compliance and privacy risk. Additionally, production logs contain the full distribution of agent responses, including poor, off-topic, or incorrect ones; using these as supervision targets trains the model to replicate bad behavior. Vertex AI SFT supports training data in Cloud Storage (as JSONL files), not exclusively in BigQuery, so that claim is false. Gemini SFT on Vertex AI supports multi-turn conversational formats, so the conversion requirement described is incorrect. There is no mechanism in Vertex AI that automatically switches a job from SFT to RLHF based on dataset size; these are separate, explicitly configured tuning methods.

3.

An ML engineer is writing a Vertex AI Pipeline component using the KFP v2 SDK. The component must accept a string parameter and output a float metric. Which decorator and return pattern correctly implements a lightweight Python function component with these signatures?

  • A. Use @component from kfp.dsl with a function that takes a str input and returns a NamedTuple containing a float field✓ Correct
  • B. Use @kfp.v2.dsl.pipeline with a function that takes a str input and returns a float directly
  • C. Use @kfp.v2.dsl.component with a function that takes a str input and writes a float to an Output[Metrics] artifact
  • D. Use @component from kfp.dsl with a function that takes a str input and writes results to a BigQuery table for downstream consumption
Explanation

In KFP v2, the @component decorator from kfp.dsl marks a Python function as a pipeline component. To output primitive values such as a float, the function should return a NamedTuple with the appropriately typed fields, which KFP serializes as component outputs. Using @kfp.v2.dsl.component is the older import path and the combination with Output[Metrics] is for artifact outputs, not primitive float outputs. The @kfp.v2.dsl.pipeline decorator is for defining the pipeline DAG itself, not individual components, and components cannot return Python primitives directly without a NamedTuple wrapper. Writing to BigQuery is a valid side effect but does not expose the value as a typed KFP component output for downstream steps.

4.

A media company wants to automatically generate timestamped summaries of hour-long video interviews and extract named entities from the spoken audio. They plan to use Gemini on Vertex AI. Which statement about this use case is correct?

  • A. Gemini models on Vertex AI only accept text inputs; the team must first transcribe audio with Speech-to-Text before calling the API
  • B. Gemini 1.5 Pro on Vertex AI natively accepts video and audio as multimodal inputs, enabling direct analysis of the video file✓ Correct
  • C. Multimodal inputs are only supported in Google AI Studio, not on the Vertex AI API
  • D. Gemini on Vertex AI supports images but not video or audio modalities
Explanation

Gemini 1.5 Pro on Vertex AI natively accepts video and audio as multimodal inputs is correct. The model can ingest video files (including their audio tracks) directly, reason over the visual and auditory content simultaneously, and produce timestamped summaries—no pre-transcription step is required. Gemini is explicitly a multimodal model that handles text, images, audio, and video. The claim that Gemini only accepts text is false. Multimodal support is fully available through the Vertex AI API; it is not restricted to Google AI Studio. The claim that video and audio are unsupported is also false—Gemini 1.5 Pro has a large context window specifically designed to handle lengthy video and audio files.

5.

A regulated financial institution is deploying a Gemini-powered Q&A assistant on Vertex AI. The security team mandates that all model API calls must never traverse the public internet and must remain within the Google Cloud private network. Which TWO configuration steps are required to satisfy this mandate? (Select TWO)

  • A. Enable VPC Service Controls and configure a service perimeter that includes the Vertex AI API✓ Correct
  • B. Assign the roles/aiplatform.user IAM role to all project members to ensure authenticated access
  • C. Set the GOOGLE_API_KEY environment variable in the application instead of using a service account
  • D. Configure Private Service Connect (PSC) to access Vertex AI endpoints via a private IP address within the VPC✓ Correct
  • E. Enable Vertex AI grounding with Google Search to ensure responses are based on verified external data
Explanation

VPC Service Controls creates a security perimeter around GCP APIs (including Vertex AI) to prevent data exfiltration and ensure traffic does not leave the defined perimeter. Private Service Connect allows the application's VPC to reach Vertex AI APIs via a private, internal IP address, ensuring traffic never traverses the public internet. Assigning roles/aiplatform.user is about authorization, not network isolation, and does not prevent public internet traversal. Grounding with Google Search is a response-quality feature unrelated to network security. Using GOOGLE_API_KEY is an authentication method for the public Google AI API, not Vertex AI, and would actually route traffic through the public endpoint.

Test yourself across every AI Intermediate domain

The free AI Intermediate practice test mixes about 20 questions weighted like the exam. The full 963-question bank adds instant grading, flashcards and a timed mock exam.

Study this domain

Google Vertex AI & Gemini study guide (AI Intermediate) →

Other AI Intermediate domains

← All AI Intermediate study resources