AI Intermediate · 22% practice allocation

AI Intermediate: Google Agent Platform & Gemini Practice Questions

5 free sample questions from the Google Agent Platform & 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 team is running a multi-tenant Gemini Enterprise Agent Platform (formerly Vertex AI) environment where different business units share a single GCP project. A security audit requires that one business unit's Agent Platform Pipeline (formerly Vertex AI Pipeline) runs cannot access another unit's Cloud Storage training data. The team must implement this isolation without creating separate GCP projects. Which TWO mechanisms best enforce this data isolation? (Select TWO)

  • A. Use a single shared service account for all pipelines and rely on application-level logic to filter data access
  • B. Assign each business unit's pipeline a dedicated service account and grant each service account IAM permissions only on its own Cloud Storage buckets✓ Correct
  • C. Enable VPC Service Controls with separate service perimeters scoped to each business unit's service accounts and resources
  • D. Apply Cloud Storage bucket-level IAM policies that explicitly deny access from service accounts belonging to other business units✓ Correct
  • E. Rotate API keys for each business unit on a weekly schedule to prevent cross-unit access
Explanation

Assigning each business unit a dedicated service account and scoping its IAM permissions to only its own buckets is the foundational GCP pattern for least-privilege isolation within a single project. Bucket-level IAM policies with explicit deny bindings for other units' service accounts provide a defense-in-depth enforcement layer at the storage resource level. Together these two controls enforce data isolation without requiring separate projects. VPC Service Controls perimeters operate at the project or resource level and are designed for cross-project/network isolation; scoping them to individual service accounts within a single project is not how perimeters work and would not achieve the desired granular isolation. Using a single shared service account with application-level filtering is insecure by design—it relies on code correctness rather than enforced access control. Rotating API keys is an authentication hygiene practice and has no bearing on Cloud Storage access authorization.

2.

An ML engineer is authoring a Gemini Enterprise Agent Platform Pipeline (formerly Vertex AI Pipeline) using the KFP v2 SDK. She wants to create a lightweight Python component that takes a string input parameter and returns an integer output without building a custom container image. Which decorator and return pattern should she use?

  • A. @dsl.pipeline with a return type annotation and the component function defined inside it
  • B. @kfp.v2.dsl.ContainerOp to define an inline container with a shell command
  • C. @dsl.component with an Output[Artifact] parameter to write the integer to a managed artifact
  • D. @dsl.component with a plain Python return statement and appropriate type annotations✓ Correct
Explanation

@dsl.component is the correct KFP v2 decorator for lightweight Python function components. When output types are Python primitives (int, str, float, bool), they can be returned directly using a plain return statement with type annotations — no artifact writing is needed. @dsl.pipeline decorates the pipeline function itself, not individual components. Output[Artifact] is used for non-primitive outputs such as datasets or models, not scalar integers. @kfp.v2.dsl.ContainerOp is a KFP v1 concept that is deprecated in KFP v2 and requires a custom container image, defeating the 'lightweight' goal.

3.

A team is building a Gemini Enterprise Agent Platform Pipeline (formerly Vertex AI Pipeline) that trains a model and then conditionally deploys it to an endpoint only if the evaluation accuracy exceeds 0.90. They want to implement this branching logic natively within the KFP v2 pipeline definition. Which KFP v2 construct should they use?

  • A. kfp.dsl.Condition, wrapping the deployment component inside a condition block that checks the accuracy output✓ Correct
  • B. Agent Platform Model Monitoring, configured to auto-deploy models when accuracy thresholds are met
  • C. A custom Python script outside the pipeline that polls Agent Platform Pipelines API and triggers a separate deployment pipeline
  • D. kfp.dsl.ParallelFor, iterating over accuracy thresholds and deploying the best-performing configuration
Explanation

kfp.dsl.Condition is the native KFP v2 construct for conditional branching in a pipeline DAG. By wrapping the deployment component in a Condition block and referencing the accuracy output from the evaluation component, the deployment step only executes when the condition evaluates to true. A custom external polling script bypasses the native pipeline DAG and introduces operational complexity and fragility outside the managed pipeline context. kfp.dsl.ParallelFor is for fan-out parallel execution over a list, not for binary conditional branching. Agent Platform Model Monitoring (formerly Vertex AI Model Monitoring) is a post-deployment service for drift and skew detection, not a mechanism for conditional model deployment based on training metrics.

4.

A data science team wants to explore and compare dozens of open-source and Google-proprietary foundation models before committing to one for a new summarization project. They need a single, unified interface within Google Cloud to browse model cards, review benchmarks, and deploy models to an endpoint. Which Gemini Enterprise Agent Platform (formerly Vertex AI) feature should they use?

  • A. Agent Platform Feature Store
  • B. Google AI Studio
  • C. Agent Platform Workbench
  • D. Agent Platform Model Garden✓ Correct
Explanation

Agent Platform Model Garden (formerly Vertex AI Model Garden) is the correct answer. It is a curated hub inside Google Cloud where teams can discover, compare, and deploy both Google-proprietary models (like Gemini) and popular open-source models (like Llama, Mistral) with model cards, benchmarks, and one-click deployment to Agent Platform endpoints (formerly Vertex AI endpoints). Agent Platform Workbench (formerly Vertex AI Workbench) is a managed notebook environment for data exploration and ML experimentation, not model discovery. Agent Platform Feature Store (formerly Vertex AI Feature Store) is for storing and serving ML features, not foundation models. Google AI Studio is a browser-based rapid-prototyping tool outside of Google Cloud's production IAM/VPC controls, not the right choice for a team that needs to compare and deploy within Google Cloud.

5.

A product team is building a real-time e-commerce recommendation engine that requires finding the top-K most semantically similar product embeddings from a corpus of 50 million items with latency under 10 ms. Which Gemini Enterprise Agent Platform (formerly Vertex AI) service is purpose-built for this use case?

  • A. Agent Platform Vector Search✓ Correct
  • B. Agent Platform Pipelines
  • C. Agent Platform Model Registry
  • D. Agent Platform Feature Store
Explanation

Agent Platform Vector Search (formerly Vertex AI Vector Search) (now part of Vector Search) is specifically designed for high-scale, low-latency approximate nearest-neighbor (ANN) search over dense vector embeddings, making it the right fit for this recommendation use case. Feature Store manages and serves ML features but does not perform vector similarity search. Pipelines orchestrates training workflows and cannot serve real-time ANN queries. Model Registry tracks and versions trained models but has no similarity-search capability.

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 Agent Platform & Gemini study guide (AI Intermediate) →

Other AI Intermediate domains

← All AI Intermediate study resources