Courseiva

PMLE Automating and Orchestrating ML Pipelines Practice Question

An ML engineer is building a Vertex AI Pipeline that includes a data validation component. The component should fail the pipeline if the input data does not meet certain statistical thresholds. The engineer wants to ensure that the pipeline stops immediately and does not proceed to training if validation fails. Which mechanism should the engineer use in the component?

⚠ Common exam trap

The trap here is thinking that logging a warning or using a conditional branch is sufficient, but only a non-zero exit code causes the pipeline to fail and stop immediately.

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

✓

Return a non-zero exit code from the component's container.

A non-zero exit code from a component's container is the standard way to signal failure in Vertex AI Pipelines. When a component fails, the pipeline task fails, and the pipeline stops by default, preventing downstream tasks from executing. This enforces the validation gate effectively.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Raise an exception in the component code and catch it in the pipeline definition.

    Why it's wrong here

    Exceptions raised in the component code are not propagated to the pipeline orchestrator. The component runs in a container, and the only signal to the pipeline is the exit code. Catching exceptions in the pipeline definition is not possible because the pipeline definition is static and does not execute the component code directly.

  • ✓

    Return a non-zero exit code from the component's container.

    Why this is correct

    In Vertex AI Pipelines, a component failure is indicated by a non-zero exit code from the container. This causes the pipeline task to fail, and by default, the pipeline stops executing subsequent tasks. This is the standard way to enforce validation gates and prevent downstream tasks from running with invalid data.

  • ✗

    Write a warning to the logs and continue execution.

    Why it's wrong here

    Writing a warning does not stop the pipeline. The pipeline would continue to the training step, potentially training on invalid data. The requirement is to fail the pipeline immediately, so logging a warning is insufficient. The component must signal failure through its exit status.

  • ✗

    Use a conditional branch in the pipeline to skip training if validation fails.

    Why it's wrong here

    A conditional branch can skip training based on a condition, but it requires the validation component to output a boolean or a metric that the condition evaluates. This adds complexity and does not immediately fail the pipeline. The scenario asks for the pipeline to stop immediately, which is more directly achieved by failing the component.

About these practice questions

This PMLE question is part of Courseiva's 775-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 and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Google Cloud exam blueprint

This PMLE 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 PMLE exam.