Skip to main content

Vertex AI Pipelines — Vertex AI MLOps

[ ABORT TO HUD ]
SEQ. 1
SEQ. 2

Vertex AI Pipelines

🔄 Vertex AI MLOps 15m 300 BASE XP⌨ HANDS-ON LAB

Serverless Pipeline Orchestration with Kubeflow (KFP)

Training models inside interactive Jupyter notebooks does not satisfy enterprise repeatability, compliance, or CI/CD mandates. Vertex AI Pipelines executes containerized, reproducible machine learning workflows with zero infrastructure management.

Pipelines are authored using the open-source Kubeflow Pipelines (KFP v2) SDK. Every component execution automatically registers input artifacts, output models, and evaluation metrics into Vertex ML Metadata, establishing an immutable audit trail of model lineage.

from kfp import dsl
from google.cloud import aiplatform

@dsl.component(base_image="python:3.11")
def evaluate_model(test_data_uri: str, accuracy_threshold: float) -> bool:
    # Model evaluation logic
    current_acc = 0.942
    return current_acc >= accuracy_threshold

@dsl.pipeline(name="enterprise-fraud-detection-pipeline")
def fraud_detection_pipeline(threshold: float = 0.90):
    eval_task = evaluate_model(
        test_data_uri="gs://ml-dw/test_data.parquet",
        accuracy_threshold=threshold
    )

# Submit serverless execution to Vertex AI Pipelines
job = aiplatform.PipelineJob(
    display_name="fraud-pipeline-run-001",
    template_path="fraud_pipeline.yaml",
    pipeline_root="gs://ml-dw/pipeline_artifacts",
    enable_caching=True
)
job.submit()
SDK Scope Note (June 2026+): While vertexai.generative_models was deprecated on June 24, 2025 and removed on June 24, 2026 (replaced by the unified google-genai SDK for all Gemini calls), non-generative platform modules in google-cloud-aiplatform — such as aiplatform.PipelineJob, aiplatform.Model, vertexai.rag, and vertexai.evaluation — remain fully supported for MLOps and RAG orchestration.
⌨ HANDS-ON LABCompile Kubeflow ML Pipeline for Vertex AI Execution
⭐ +150 XP

Compile a Python Kubeflow Pipelines (KFP) script into a declarative pipeline.yaml specification ready for Vertex AI Pipelines runner.

1Execute Python compiler to generate pipeline.yaml artifact.
lab-sandbox — simulated environment
INFINITY LAB SANDBOX v2.6 — simulated shell
Type the command for the current objective. Helpers: "hint", "solution", "clear".
$
OBJECTIVE 1 / 1 — type "hint" if stuck
SYNAPSE VERIFICATION
QUERY 1 // 2
What is the purpose of Vertex AI Pipelines?
To write SQL queries
To orchestrate and automate the full machine learning lifecycle (MLOps)
To build user interfaces
To serve web traffic